WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取本机操作系统等待句柄的安全句柄。
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
本机操作系统句柄。
返回
包装本机操作系统等待句柄的安全等待句柄。
- 属性
例外
waitHandle
为 null
。
注解
GetSafeWaitHandle 是一种扩展方法,等效于检索 属性的值 WaitHandle.SafeWaitHandle 。