CFMessagePort Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A communication channel between multiple threads on the local device.
public class CFMessagePort : CoreFoundation.NativeObject
type CFMessagePort = class
inherit NativeObject
- Inheritance
Properties
| Name | Description |
|---|---|
| Handle | (Inherited from DisposableObject) |
| 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. |
| Owns | (Inherited from DisposableObject) |
Methods
| Name | Description |
|---|---|
| ClearHandle() | (Inherited from DisposableObject) |
| CreateLocalPort(String, CFMessagePort+CFMessagePortCallBack, CFAllocator) | |
| CreateRemotePort(CFAllocator, String) |
Deprecated. |
| CreateRunLoopSource() |
Creates a CFRunLoopSource object for a CFMessagePort object. |
| Dispose() | (Inherited from DisposableObject) |
| Dispose(Boolean) |
Releases the resources used by the CFMessagePort object. |
| Equals(Object) | (Inherited from DisposableObject) |
| GetCheckedHandle() | (Inherited from DisposableObject) |
| GetHashCode() | (Inherited from DisposableObject) |
| InitializeHandle(NativeHandle) | (Inherited from DisposableObject) |
| Invalidate() |
Invalidating a message port prevents the port from ever sending or receiving any more messages. |
| Release() | (Inherited from NativeObject) |
| Retain() | (Inherited from NativeObject) |
| 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. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |