Sprache

DispatchSource.MachSend Klasse

Definition

Dispatch sources of this type monitor a mach port with a send right for state changes.

public class DispatchSource.MachSend : CoreFoundation.DispatchSource.Mach
type DispatchSource.MachSend = class
    inherit DispatchSource.Mach
Vererbung

Hinweise

Sie können diese DispatchSource verwenden, um sowohl Sendestatusänderungen als auch die Zerstörung der Empfängerrechte des entsprechenden Ports zu überwachen.

Konstruktoren

Name Beschreibung
DispatchSource.MachSend(Int32, Boolean, DispatchQueue)

Erstellt eine Verteilerquelle, die den angegebenen Mach-Port für Änderungen des richtigen Zustands überwacht.

DispatchSource.MachSend(IntPtr, Boolean)

Dispatch sources of this type monitor a mach port with a send right for state changes.

DispatchSource.MachSend(IntPtr)

Dispatch sources of this type monitor a mach port with a send right for state changes.

Eigenschaften

Name Beschreibung
Handle

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
IsCanceled

Ermitteln Sie, ob die angegebene Quelle abgebrochen wurde.

(Geerbt von DispatchSource)
MachPort

Der MachPort, den diese DispatchSource überwacht.

(Geerbt von DispatchSource.Mach)
Owns

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
SendRightsDestroyed

Bestimmt, ob der Handler aufgerufen wurde, da ein Senderecht zerstört wird.

Methoden

Name Beschreibung
Activate()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DispatchObject)
Cancel()

Bricht die Verteilerquelle asynchron ab.

(Geerbt von DispatchSource)
ClearHandle()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
Dispose()

Gibt alle von diesem Objekt verwendeten Ressourcen frei.

(Geerbt von DisposableObject)
Dispose(Boolean)

Gibt die vom DispatchSource-Objekt verwendeten Ressourcen frei.

(Geerbt von DispatchSource)
Equals(Object)

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
GetCheckedHandle()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
GetHashCode()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
InitializeHandle(NativeHandle)

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DisposableObject)
Release()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DispatchObject)
Resume()

Setzt die Verteilerquelle fort.

(Geerbt von DispatchSource)
Retain()

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DispatchObject)
SetCancelHandler(Action)

Stellt einen Abbruchhandler bereit.

(Geerbt von DispatchSource)
SetEventHandler(Action)

Es wurde ein Handler angegeben, der ausgeführt werden soll, wenn Ereignisse in der Verteilerquelle empfangen werden.

(Geerbt von DispatchSource)
SetRegistrationHandler(Action)

Stellt einen Registrierungshandler bereit.

(Geerbt von DispatchSource)
SetTargetQueue(DispatchQueue)

Dispatch sources of this type monitor a mach port with a send right for state changes.

(Geerbt von DispatchObject)
Suspend()

Hält die Verteilerquelle an.

(Geerbt von DispatchSource)

Erweiterungsmethoden

Name Beschreibung
GetHandle(INativeObject)

Dispatch sources of this type monitor a mach port with a send right for state changes.

GetNonNullHandle(INativeObject, String)

Dispatch sources of this type monitor a mach port with a send right for state changes.

Gilt für: