MonobjcMonobjc Documented Class Library
PortWithMachPort Method (machPort)
NamespacesMonobjc.FoundationNSMachPortPortWithMachPort(UInt32)

Creates and returns a port object configured with the given Mach port.

Original signature is '+ (NSPort *)portWithMachPort:(uint32_t)machPort'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSPort PortWithMachPort(
	uint machPort
)
Public Shared Function PortWithMachPort ( _
	machPort As UInteger _
) As NSPort
public:
static NSPort^ PortWithMachPort(
	unsigned int machPort
)
Parameters
machPort (UInt32)
The Mach port for the new port. This parameter should originally be of type mach_port_t.
Return Value
An NSMachPort object that uses machPort to send or receive messages.
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)