RegistryAclExtensions.GetAccessControl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAccessControl(RegistryKey) |
Returns the security information of a registry key. |
GetAccessControl(RegistryKey, AccessControlSections) |
Returns the security information of a registry key. |
GetAccessControl(RegistryKey)
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
Returns the security information of a registry key.
public:
[System::Runtime::CompilerServices::Extension]
static System::Security::AccessControl::RegistrySecurity ^ GetAccessControl(Microsoft::Win32::RegistryKey ^ key);
public static System.Security.AccessControl.RegistrySecurity GetAccessControl (this Microsoft.Win32.RegistryKey key);
static member GetAccessControl : Microsoft.Win32.RegistryKey -> System.Security.AccessControl.RegistrySecurity
<Extension()>
Public Function GetAccessControl (key As RegistryKey) As RegistrySecurity
Parameters
- key
- RegistryKey
The existing registry key from which to obtain the security information.
Returns
The security descriptors of all the access control sections of the registry key.
Applies to
GetAccessControl(RegistryKey, AccessControlSections)
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
Returns the security information of a registry key.
public:
[System::Runtime::CompilerServices::Extension]
static System::Security::AccessControl::RegistrySecurity ^ GetAccessControl(Microsoft::Win32::RegistryKey ^ key, System::Security::AccessControl::AccessControlSections includeSections);
public static System.Security.AccessControl.RegistrySecurity GetAccessControl (this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.AccessControlSections includeSections);
static member GetAccessControl : Microsoft.Win32.RegistryKey * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.RegistrySecurity
<Extension()>
Public Function GetAccessControl (key As RegistryKey, includeSections As AccessControlSections) As RegistrySecurity
Parameters
- key
- RegistryKey
An existing registry key from which to obtain the security information.
- includeSections
- AccessControlSections
The desired access control sections to retrieve.
Returns
The security descriptors of the specified access control sections of the registry key.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기