WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) Method

Définition

Définit un handle sécurisé pour un handle d’attente de système d’exploitation natif.Sets a safe handle for a native operating system wait handle.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetSafeWaitHandle(System::Threading::WaitHandle ^ waitHandle, Microsoft::Win32::SafeHandles::SafeWaitHandle ^ value);
[System.Security.SecurityCritical]
public static void SetSafeWaitHandle (this System.Threading.WaitHandle waitHandle, Microsoft.Win32.SafeHandles.SafeWaitHandle value);
static member SetSafeWaitHandle : System.Threading.WaitHandle * Microsoft.Win32.SafeHandles.SafeWaitHandle -> unit

Paramètres

waitHandle
WaitHandle WaitHandle WaitHandle

Handle d’attente qui encaspule un objet spécifique au système d’exploitation qui attend l’accès exclusif à une ressource partagée.A wait handle that encapsulates an operating system-specific object that waits for exclusive access to a shared resource.

value
SafeWaitHandle SafeWaitHandle SafeWaitHandle

Handle sécurisé pour encapsuler le handle de système d’exploitation.The safe handle to wrap the operating system handle.

Exceptions

waitHandle est null.waitHandle is null.

Remarques

SetSafeWaitHandle est une méthode d’extension qui est équivalente à l’attribution d’une valeur pour le WaitHandle.SafeWaitHandle propriété.SetSafeWaitHandle is an extension method that is equivalent to assigning a value to the WaitHandle.SafeWaitHandle property.

S’applique à