RegistryAclExtensions.GetAccessControl 方法

定义

重载

GetAccessControl(RegistryKey)

返回注册表项的安全信息。

GetAccessControl(RegistryKey, AccessControlSections)

返回注册表项的安全信息。

GetAccessControl(RegistryKey)

Source:
RegistryAclExtensions.cs

返回注册表项的安全信息。

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

参数

key
RegistryKey

要从中获取安全信息的现有注册表项。

返回

注册表项的所有访问控制部分的安全描述符。

适用于

GetAccessControl(RegistryKey, AccessControlSections)

Source:
RegistryAclExtensions.cs

返回注册表项的安全信息。

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

参数

key
RegistryKey

一个要从中获取安全信息的现有注册表项。

includeSections
AccessControlSections

要检索的必需访问控制部分。

返回

注册表项的指定访问控制部分的安全描述符。

适用于