MonobjcMonobjc Documented Class Library
InitWithMachPortOptions Method (machPort, options)
NamespacesMonobjc.FoundationNSMachPortInitWithMachPortOptions(UInt32, NSUInteger)

Initializes a newly allocated NSMachPort object with a given Mach port and the specified options.

Original signature is '- (id)initWithMachPort:(uint32_t)machPort options:(NSUInteger)options'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithMachPortOptions(
	uint machPort,
	NSUInteger options
)
Public Overridable Function InitWithMachPortOptions ( _
	machPort As UInteger, _
	options As NSUInteger _
) As Id
public:
virtual Id^ InitWithMachPortOptions(
	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
Returns an initialized NSMachPort object that uses machPort to send or receive messages. The returned object might be different than the original receiver
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)