共用方式為


DispatchSource.MachSend 建構函式

定義

多載

DispatchSource.MachSend(IntPtr)
DispatchSource.MachSend(IntPtr, Boolean)
DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

建立分派來源,以監視指定的 mach 埠以傳送正確的狀態變更。

DispatchSource.MachSend(IntPtr)

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

參數

handle
IntPtr

nativeint

適用於

DispatchSource.MachSend(IntPtr, Boolean)

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

參數

handle
IntPtr

nativeint

owns
Boolean

適用於

DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

建立分派來源,以監視指定的 mach 埠以傳送正確的狀態變更。

public MachSend (int machPort, bool sendDead = false, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MachSend : int * bool * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MachSend

參數

machPort
Int32

mach 埠

sendDead
Boolean

如果設定為 true,這也會在埠的對應接收許可權遭到終結時張貼通知。

queue
DispatchQueue

這個分派來源物件的目標佇列。   傳遞 null 以使用預設目標佇列 (預設優先順序的全域並行佇列) 。

備註

您可以使用 SendRightsDestroyed 屬性來判斷處理常式是否因為對應的接收許可權遭到終結而叫用,或者是否為一般狀態變更。

適用於