WaitHandleExtensions.SetSafeWaitHandle(WaitHandle, SafeWaitHandle) 메서드

정의

네이티브 운영 체제 대기 핸들에 대한 안전한 핸들을 설정합니다.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

공유 리소스에 대한 단독 액세스를 기다리는 운영 체제별 개체를 캡슐화하는 대기 핸들입니다.A wait handle that encapsulates an operating system-specific object that waits for exclusive access to a shared resource.

value
SafeWaitHandle

운영 체제 핸들을 래핑할 안전한 핸들입니다.The safe handle to wrap the operating system handle.

특성

예외

waitHandle이(가) null인 경우waitHandle is null.

설명

SetSafeWaitHandleWaitHandle.SafeWaitHandle 속성에 값을 할당 하는 것과 같은 확장 메서드입니다.SetSafeWaitHandle is an extension method that is equivalent to assigning a value to the WaitHandle.SafeWaitHandle property.

적용 대상