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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin