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 擴充方法。