共用方式為


RegistryAclExtensions.GetAccessControl 方法

定義

多載

GetAccessControl(RegistryKey)

傳回登錄機碼的安全性資訊。

GetAccessControl(RegistryKey, AccessControlSections)

傳回登錄機碼的安全性資訊。

GetAccessControl(RegistryKey)

來源:
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)

來源:
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

要擷取的所需存取控制區段。

傳回

登錄機碼其指定存取控制區段的安全性描述元。

適用於