DispatchSource.MachReceive 构造函数

定义

重载

DispatchSource.MachReceive(IntPtr)
DispatchSource.MachReceive(Int32, DispatchQueue)

创建一个调度源,用于监视指定 mach 端口的消息可用性。

DispatchSource.MachReceive(IntPtr, Boolean)

DispatchSource.MachReceive(IntPtr)

public MachReceive (IntPtr handle);
new CoreFoundation.DispatchSource.MachReceive : nativeint -> CoreFoundation.DispatchSource.MachReceive

参数

handle
IntPtr

nativeint

适用于

DispatchSource.MachReceive(Int32, DispatchQueue)

创建一个调度源,用于监视指定 mach 端口的消息可用性。

public MachReceive (int machPort, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MachReceive : int * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MachReceive

参数

machPort
Int32

用于监视传入数据的 Mach 端口。

queue
DispatchQueue

此调度源对象的目标队列。   传递 null 以使用默认目标队列 (默认优先级全局并发队列) 。

注解

适用于

DispatchSource.MachReceive(IntPtr, Boolean)

public MachReceive (IntPtr handle, bool owns);
new CoreFoundation.DispatchSource.MachReceive : nativeint * bool -> CoreFoundation.DispatchSource.MachReceive

参数

handle
IntPtr

nativeint

owns
Boolean

适用于