RegistryKey.GetAccessControl 메서드

정의

현재 레지스트리 키에 대한 액세스 제어 보안을 반환합니다.

오버로드

GetAccessControl()

현재 레지스트리 키에 대한 액세스 제어 보안을 반환합니다.

GetAccessControl(AccessControlSections)

현재 레지스트리 키에 대한 액세스 제어 보안의 지정된 섹션을 반환합니다.

GetAccessControl()

Source:
RegistryKey.cs

현재 레지스트리 키에 대한 액세스 제어 보안을 반환합니다.

public:
 System::Security::AccessControl::RegistrySecurity ^ GetAccessControl();
public System.Security.AccessControl.RegistrySecurity GetAccessControl ();
member this.GetAccessControl : unit -> System.Security.AccessControl.RegistrySecurity
Public Function GetAccessControl () As RegistrySecurity

반환

현재 RegistryKey로 표시된 레지스트리 키에 대한 액세스 제어 권한을 설명하는 개체입니다.

예외

사용자에게 필요한 권한이 없는 경우

조작할 RegistryKey가 닫힌 경우. 닫힌 키는 액세스할 수 없습니다.

현재 키가 삭제된 경우

설명

이 메서드 오버로드는 , 및 AccessControlSections.Owner플래그AccessControlSections.Access의 비트 조합으로 메서드 오버로드를 호출 GetAccessControl(AccessControlSections) 하는 것과 AccessControlSections.Group같습니다. 해당 오버로드를 사용하여 다른 권한을 검색할 수 있습니다.

사용자는 이 메서드를 호출할 권한이 있어야 합니다 RegistryRights.ReadPermissions .

적용 대상

GetAccessControl(AccessControlSections)

Source:
RegistryKey.cs

현재 레지스트리 키에 대한 액세스 제어 보안의 지정된 섹션을 반환합니다.

public:
 System::Security::AccessControl::RegistrySecurity ^ GetAccessControl(System::Security::AccessControl::AccessControlSections includeSections);
public System.Security.AccessControl.RegistrySecurity GetAccessControl (System.Security.AccessControl.AccessControlSections includeSections);
member this.GetAccessControl : System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.RegistrySecurity
Public Function GetAccessControl (includeSections As AccessControlSections) As RegistrySecurity

매개 변수

includeSections
AccessControlSections

가져올 보안 정보의 형식을 지정하는 열거형 값의 비트 조합입니다.

반환

현재 RegistryKey로 표시된 레지스트리 키에 대한 액세스 제어 권한을 설명하는 개체입니다.

예외

사용자에게 필요한 권한이 없는 경우

조작할 RegistryKey가 닫힌 경우. 닫힌 키는 액세스할 수 없습니다.

현재 키가 삭제된 경우

설명

현재 사용자에게 부여된 액세스 권한을 요청하려면 , 및 AccessControlSections.OwnerAccessControlSections.Group플래그AccessControlSections.Access의 비트 조합을 지정합니다. 또는 값의 GetAccessControl() 조합을 정확하게 지정하는 메서드 오버로드를 사용할 수 있습니다.

사용자는 이 메서드를 호출할 권한이 있어야 합니다 RegistryRights.ReadPermissions .

적용 대상