RegistryAclExtensions.GetAccessControl Method
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.
GetAccessControl(RegistryKey) |
Returns the security information of a registry key. |
GetAccessControl(RegistryKey, AccessControlSections) |
Returns the security information of a registry key. |
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
- 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
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
- Source:
- RegistryAclExtensions.cs
- 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 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: