MonobjcMonobjc Documented Class Library
RootProxyForConnectionWithRegisteredNameHost Method (name, hostName)
NamespacesMonobjc.FoundationNSConnectionRootProxyForConnectionWithRegisteredNameHost(NSString, NSString)

Returns a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under a given name on a given host.

Original signature is '+ (NSDistantObject *)rootProxyForConnectionWithRegisteredName:(NSString *)name host:(NSString *)hostName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDistantObject RootProxyForConnectionWithRegisteredNameHost(
	NSString name,
	NSString hostName
)
Public Shared Function RootProxyForConnectionWithRegisteredNameHost ( _
	name As NSString, _
	hostName As NSString _
) As NSDistantObject
public:
static NSDistantObject^ RootProxyForConnectionWithRegisteredNameHost(
	NSString^ name, 
	NSString^ hostName
)
Parameters
name (NSString)
The name under which the connection is registered.
hostName (NSString)
The host name. The domain name hostName is an Internet domain name (for example, "sales.anycorp.com"). If hostName is nil or empty, then only the local host is searched for the named NSConnection object.
Return Value
a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under name on the host named hostName, or nil if that NSConnection object has no root object set. Also returns nil if no NSConnection object can be found for name and hostName.
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)