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

Definición

Establece un controlador seguro para un identificador de espera del sistema operativo nativo.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

Parámetros

waitHandle
WaitHandle WaitHandle WaitHandle

Identificador de espera que encapsula un objeto específico del sistema operativo que está esperando para tener acceso exclusivo a un recurso compartido.A wait handle that encapsulates an operating system-specific object that waits for exclusive access to a shared resource.

value
SafeWaitHandle SafeWaitHandle SafeWaitHandle

Controlador seguro que encapsula el identificador del sistema operativo.The safe handle to wrap the operating system handle.

Excepciones

waitHandle es null.waitHandle is null.

Comentarios

SetSafeWaitHandle es un método de extensión que es equivalente a asignar un valor para el WaitHandle.SafeWaitHandle propiedad.SetSafeWaitHandle is an extension method that is equivalent to assigning a value to the WaitHandle.SafeWaitHandle property.

Se aplica a