WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) 方法

定义

获取本机操作系统等待句柄的安全句柄。

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

参数

waitHandle
WaitHandle

本机操作系统句柄。

返回

SafeWaitHandle

包装本机操作系统等待句柄的安全等待句柄。

属性

例外

waitHandlenull

注解

GetSafeWaitHandle 是一种等效于检索属性值的 WaitHandle.SafeWaitHandle 扩展方法。

适用于