Edit

Share via


CFMessagePort Class

Definition

A communication channel between multiple threads on the local device.

public class CFMessagePort : IDisposable, ObjCRuntime.INativeObject
type CFMessagePort = class
    interface INativeObject
    interface IDisposable
Inheritance
CFMessagePort
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

InvalidationCallback

Gets or sets the invalidation callback method for a CFMessagePort object.

IsRemote

Returns a Boolean value that indicates whether a current instance of CFMessagePort object represents a remote port.

IsValid

Returns a boolean value that indicates whether a CFMessagePort object is valid.

Name

The registered name of message port.

Methods

Check()

Method that developers can call from their own subclasses to ensure that the port has not been disposed.

CreateLocalPort(String, CFMessagePort+CFMessagePortCallBack, CFAllocator)
CreateRemotePort(CFAllocator, String)

Deprecated.

CreateRunLoopSource()

Creates a CFRunLoopSource object for a CFMessagePort object.

Dispose()

Releases the resources used by the CFMessagePort object.

Dispose(Boolean)

Releases the resources used by the CFMessagePort object.

Finalize()

Finalizer for the CFMessagePort object

Invalidate()

Invalidating a message port prevents the port from ever sending or receiving any more messages.

SendRequest(Int32, NSData, Double, Double, NSString, NSData)

Sends a message to the port.

SetDispatchQueue(DispatchQueue)

Schedules message port’s callbacks on the specified dispatch queue.

Applies to