共用方式為


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

適用於