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

本机操作系统句柄。

返回

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

属性

例外

waitHandlenull

注解

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

适用于