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.
| C# | Visual Basic | Visual 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 )
- name (NSString)
- The name under which to register the receiver.
- server (NSPortNameServer)
- The name server.
YES if the operation was successful, otherwise NO (for example, if another NSConnection object on the same host is already registered under name).
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)