WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) Método

Definição

Obtém o identificador seguro para um identificador de espera nativo do sistema operacional.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);
public static Microsoft.Win32.SafeHandles.SafeWaitHandle GetSafeWaitHandle (this System.Threading.WaitHandle waitHandle);
[<System.Security.SecurityCritical>]
static member GetSafeWaitHandle : System.Threading.WaitHandle -> Microsoft.Win32.SafeHandles.SafeWaitHandle
static member GetSafeWaitHandle : System.Threading.WaitHandle -> Microsoft.Win32.SafeHandles.SafeWaitHandle
<Extension()>
Public Function GetSafeWaitHandle (waitHandle As WaitHandle) As SafeWaitHandle

Parâmetros

waitHandle
WaitHandle

Um identificador nativo do sistema operacional.A native operating system handle.

Retornos

SafeWaitHandle

Identificador de espera segura que encapsula o identificador de espera do sistema operacional nativo.The safe wait handle that wraps the native operating system wait handle.

Atributos

Exceções

waitHandle é null.waitHandle is null.

Comentários

GetSafeWaitHandle é um método de extensão que é equivalente a recuperar o valor da WaitHandle.SafeWaitHandle propriedade.GetSafeWaitHandle is an extension method that is equivalent to retrieving the value of the WaitHandle.SafeWaitHandle property.

Aplica-se a