다음을 통해 공유


EventWaitHandleAcl.TryOpenExisting 메서드

정의

지정된 명명된 이벤트 대기 핸들을 열려고 시도합니다(이미 있는 경우). 원하는 액세스 권한을 적용하고 작업이 성공했는지 여부를 나타내는 값을 반환합니다.

public:
 static bool TryOpenExisting(System::String ^ name, System::Security::AccessControl::EventWaitHandleRights rights, [Runtime::InteropServices::Out] System::Threading::EventWaitHandle ^ % result);
public static bool TryOpenExisting (string name, System.Security.AccessControl.EventWaitHandleRights rights, out System.Threading.EventWaitHandle? result);
static member TryOpenExisting : string * System.Security.AccessControl.EventWaitHandleRights * EventWaitHandle -> bool
Public Shared Function TryOpenExisting (name As String, rights As EventWaitHandleRights, ByRef result As EventWaitHandle) As Boolean

매개 변수

name
String

열 이벤트 대기 핸들의 이름입니다. "Global" 접두사인 경우 컴퓨터 전체 이벤트 대기 핸들을 나타냅니다. 접두사 "Local"이 접두사이거나 접두사 없는 경우 세션 전체 이벤트 대기 핸들을 참조합니다. 접두사와 이름 모두 대/소문자를 구분합니다.

rights
EventWaitHandleRights

반환된 이벤트 대기 핸들에 적용할 원하는 액세스 권한입니다.

result
EventWaitHandle

이 메서드가 반환 true될 때 호출이 성공한 경우 또는 그렇지 않은 경우 명명된 이벤트 대기 핸들을 나타내는 개체를 null 포함합니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반환

Boolean

true if the named event wait handle was opened successfully; otherwise, false.

예외

namenull인 경우

name이 빈 문자열인 경우

Win32 오류가 발생한 경우

명명된 이벤트 대기 핸들이 있지만 사용자에게는 이를 사용하는 데 필요한 보안 액세스 권한이 없습니다.

적용 대상