共用方式為


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

適用於