WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) Method

定義

ネイティブ オペレーティング システムの待機ハンドルのためのセーフ ハンドルを設定します。Sets a safe handle for a native operating system wait handle.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetSafeWaitHandle(System::Threading::WaitHandle ^ waitHandle, Microsoft::Win32::SafeHandles::SafeWaitHandle ^ value);
[System.Security.SecurityCritical]
public static void SetSafeWaitHandle (this System.Threading.WaitHandle waitHandle, Microsoft.Win32.SafeHandles.SafeWaitHandle value);
static member SetSafeWaitHandle : System.Threading.WaitHandle * Microsoft.Win32.SafeHandles.SafeWaitHandle -> unit

パラメーター

waitHandle
WaitHandle WaitHandle WaitHandle

共有リソースへの排他アクセスを待機するオペレーティング システム固有のオブジェクトをカプセル化する待機ハンドル。A wait handle that encapsulates an operating system-specific object that waits for exclusive access to a shared resource.

value
SafeWaitHandle SafeWaitHandle SafeWaitHandle

オペレーティング システム ハンドルをラップするセーフ ハンドル。The safe handle to wrap the operating system handle.

例外

waitHandlenullです。waitHandle is null.

注釈

SetSafeWaitHandle 値を割り当てると等価な拡張メソッドは、WaitHandle.SafeWaitHandleプロパティ。SetSafeWaitHandle is an extension method that is equivalent to assigning a value to the WaitHandle.SafeWaitHandle property.

適用対象