Share via


DispatchSource.MachReceive Class

Definition

Dispatch Sources of this type monitor a mach port with a receive right for state changes.

public class DispatchSource.MachReceive : CoreFoundation.DispatchSource
type DispatchSource.MachReceive = class
    inherit DispatchSource
Inheritance

Remarks

The event handler will be invoked on the target queue when a message on the mach port is waiting to be received.

Constructors

Name Description
DispatchSource.MachReceive(Int32, DispatchQueue)

Creates a dispatch source that monitors the specified mach port for message availability.

DispatchSource.MachReceive(IntPtr, Boolean)
DispatchSource.MachReceive(IntPtr)

Properties

Name Description
Handle (Inherited from DisposableObject)
IsCanceled

Determine whether the specified source has been canceled.

(Inherited from DispatchSource)
Owns (Inherited from DisposableObject)

Methods

Name Description
Activate() (Inherited from DispatchObject)
Cancel()

Asynchronously cancels the dispatch source.

(Inherited from DispatchSource)
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean)

Releases the resources used by the DispatchSource object.

(Inherited from DispatchSource)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from DispatchObject)
Resume()

Resumes the dispatch source.

(Inherited from DispatchSource)
Retain() (Inherited from DispatchObject)
SetCancelHandler(Action)

Provides a cancellation handler

(Inherited from DispatchSource)
SetEventHandler(Action)

Specified a handler to execute when events are received on the dispatch source.

(Inherited from DispatchSource)
SetRegistrationHandler(Action)

Provides a registration handler

(Inherited from DispatchSource)
SetTargetQueue(DispatchQueue) (Inherited from DispatchObject)
Suspend()

Suspends the dispatch source.

(Inherited from DispatchSource)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to