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.

적용 대상