MonobjcMonobjc Documented Class Library
ServiceConnectionWithNameRootObject Method (name, root)
NamespacesMonobjc.FoundationNSConnectionServiceConnectionWithNameRootObject(NSString, Id)

Creates and returns a new connection object representing a vended service on the default system port name server.

Original signature is '+ (id)serviceConnectionWithName:(NSString *)name rootObject:(id)root'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id ServiceConnectionWithNameRootObject(
	NSString name,
	Id root
)
Public Shared Function ServiceConnectionWithNameRootObject ( _
	name As NSString, _
	root As Id _
) As Id
public:
static Id^ ServiceConnectionWithNameRootObject(
	NSString^ name, 
	Id^ root
)
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.
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)