MonobjcMonobjc Documented Class Library
PortForName Method (portName)
NamespacesMonobjc.FoundationNSPortNameServerPortForName(NSString)

Looks up and returns the port registered under the specified name on the local host.

Original signature is '- (NSPort *)portForName:(NSString *)portName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSPort PortForName(
	NSString portName
)
Public Overridable Function PortForName ( _
	portName As NSString _
) As NSPort
public:
virtual NSPort^ PortForName(
	NSString^ portName
)
Parameters
portName (NSString)
The name of the desired port.
Return Value
The port associated with portName on the local host. Returns nil if no such port exists.
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)