MonobjcMonobjc Documented Class Library
RegisterPortName Method (aPort, portName)
NamespacesMonobjc.FoundationNSPortNameServerRegisterPortName(NSPort, NSString)

Makes a given port available on the network under a specified name.

Original signature is '- (BOOL)registerPort:(NSPort *)aPort name:(NSString *)portName'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RegisterPortName(
	NSPort aPort,
	NSString portName
)
Public Overridable Function RegisterPortName ( _
	aPort As NSPort, _
	portName As NSString _
) As Boolean
public:
virtual bool RegisterPortName(
	NSPort^ aPort, 
	NSString^ portName
)
Parameters
aPort (NSPort)
The port to make available.
portName (NSString)
The name for the port.
Return Value
YES if successful, NO otherwise (for example, if another NSPort object has already been registered under portName).
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)