RegistryAclExtensions.SetAccessControl(RegistryKey, RegistrySecurity) 方法

定义

更改现有注册表项的安全属性。

public:
[System::Runtime::CompilerServices::Extension]
 static void SetAccessControl(Microsoft::Win32::RegistryKey ^ key, System::Security::AccessControl::RegistrySecurity ^ registrySecurity);
public static void SetAccessControl (this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.RegistrySecurity registrySecurity);
static member SetAccessControl : Microsoft.Win32.RegistryKey * System.Security.AccessControl.RegistrySecurity -> unit
<Extension()>
Public Sub SetAccessControl (key As RegistryKey, registrySecurity As RegistrySecurity)

参数

key
RegistryKey

现有注册表项。

registrySecurity
RegistrySecurity

应用于注册表项的安全信息。

适用于