DispatchSource.MachSend 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
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 屬性來判斷處理常式是否因為對應的接收許可權遭到終結而叫用,或者是否為一般狀態變更。