MonobjcMonobjc Documented Class Library
RegisterNameWithNameServer Method (name, server)
NamespacesMonobjc.FoundationNSConnectionRegisterNameWithNameServer(NSString, NSPortNameServer)

Registers a service with the specified port name server.

Original signature is '- (BOOL)registerName:(NSString *)name withNameServer:(NSPortNameServer *)server'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RegisterNameWithNameServer(
	NSString name,
	NSPortNameServer server
)
Public Overridable Function RegisterNameWithNameServer ( _
	name As NSString, _
	server As NSPortNameServer _
) As Boolean
public:
virtual bool RegisterNameWithNameServer(
	NSString^ name, 
	NSPortNameServer^ server
)
Parameters
name (NSString)
The name under which to register the receiver.
server (NSPortNameServer)
The name server.
Return Value
YES if the operation was successful, otherwise NO (for example, if another NSConnection object on the same host is already registered under name).
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)