WaitHandleExtensions.GetSafeWaitHandle(WaitHandle) 方法

定義

取得原生作業系統等候控制代碼的安全控制代碼。Gets the safe handle for a native operating system wait handle.

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

原生作業系統控制代碼。A native operating system handle.

傳回

SafeWaitHandle

包裝原生作業系統等候控制代碼的安全等候控制代碼。The safe wait handle that wraps the native operating system wait handle.

屬性

例外狀況

waitHandlenullwaitHandle is null.

備註

GetSafeWaitHandle 是相當於抓取屬性值的擴充方法 WaitHandle.SafeWaitHandleGetSafeWaitHandle is an extension method that is equivalent to retrieving the value of the WaitHandle.SafeWaitHandle property.

適用於