WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) Method

Definition

Ruft das sichere Handle für ein systemeigenes Betriebssystem-Wait-Handle ab.Gets the safe handle for a native operating system wait handle.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Win32::SafeHandles::SafeWaitHandle ^ GetSafeWaitHandle(System::Threading::WaitHandle ^ waitHandle);
[System.Security.SecurityCritical]
public static Microsoft.Win32.SafeHandles.SafeWaitHandle GetSafeWaitHandle (this System.Threading.WaitHandle waitHandle);
static member GetSafeWaitHandle : System.Threading.WaitHandle -> Microsoft.Win32.SafeHandles.SafeWaitHandle

Parameter

waitHandle
WaitHandle WaitHandle WaitHandle

Ein systemeigenes Betriebssystemhandle.A native operating system handle.

Gibt zurück

Das sichere Wait-Handle, welches das systemeigene Betriebssystem-Wait-Handle umschließt.The safe wait handle that wraps the native operating system wait handle.

Ausnahmen

waitHandle ist null.waitHandle is null.

Hinweise

GetSafeWaitHandleist eine Erweiterungsmethode, die dem Abrufen des Werts der WaitHandle.SafeWaitHandle -Eigenschaft entspricht.GetSafeWaitHandle is an extension method that is equivalent to retrieving the value of the WaitHandle.SafeWaitHandle property.

Gilt für: