DispatchSource.MachReceive 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 以使用默认目标队列 (默认优先级全局并发队列) 。