संपादित करें

इसके माध्यम से साझा किया गया


RegistryAclExtensions.GetAccessControl Method

Definition

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