MonobjcMonobjc Documented Class Library
PortWithMachPortOptions Method (machPort, options)
NamespacesMonobjc.FoundationNSMachPortPortWithMachPortOptions(UInt32, NSUInteger)

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

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

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSPort PortWithMachPortOptions(
	uint machPort,
	NSUInteger options
)
Public Shared Function PortWithMachPortOptions ( _
	machPort As UInteger, _
	options As NSUInteger _
) As NSPort
public:
static NSPort^ PortWithMachPortOptions(
	unsigned int machPort, 
	NSUInteger options
)
Parameters
machPort (UInt32)
The Mach port for the new port. This parameter should originally be of type mach_port_t.
options (NSUInteger)
Specifies options for what to do with the underlying port rights when the NSMachPort object is invalidated or destroyed. For a list of constants, see “Mach Port Rights.”
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)