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

Définition

Obtient le handle sécurisé pour un handle d’attente de système d’exploitation natif.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

Paramètres

waitHandle
WaitHandle WaitHandle WaitHandle

Handle de système d’exploitation natif.A native operating system handle.

Retours

Handle d’attente sécurisé qui encapsule le handle d’attente de système d’exploitation natif.The safe wait handle that wraps the native operating system wait handle.

Exceptions

waitHandle est null.waitHandle is null.

Remarques

GetSafeWaitHandle est une méthode d’extension qui est équivalente à la récupération de la valeur de la WaitHandle.SafeWaitHandle propriété.GetSafeWaitHandle is an extension method that is equivalent to retrieving the value of the WaitHandle.SafeWaitHandle property.

S’applique à