Creates and returns a new connection object representing a vended service on the specified port name server.
Original signature is '+ (id)serviceConnectionWithName:(NSString *)name rootObject:(id)root usingNameServer:(NSPortNameServer *)server'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
public static Id ServiceConnectionWithNameRootObjectUsingNameServer( NSString name, Id root, NSPortNameServer server )
Public Shared Function ServiceConnectionWithNameRootObjectUsingNameServer ( _ name As NSString, _ root As Id, _ server As NSPortNameServer _ ) As Id
public: static Id^ ServiceConnectionWithNameRootObjectUsingNameServer( NSString^ name, Id^ root, NSPortNameServer^ server )

- name (NSString)
- The name of the service you want to publish.
- root (Id)
- The object to use as the root object for the published service. This is the object vended by the connection.
- server (NSPortNameServer)
- The port name server with which to register your service.

An NSConnection object representing the vended service or nil if there was a problem setting up the connection object.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)