MonobjcMonobjc Documented Class Library
ServiceConnectionWithNameRootObjectUsingNameServer Method (name, root, server)
NamespacesMonobjc.FoundationNSConnectionServiceConnectionWithNameRootObjectUsingNameServer(NSString, Id, NSPortNameServer)

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.

Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value
An NSConnection object representing the vended service or nil if there was a problem setting up the connection object.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)