RegistryAclExtensions.SetAccessControl(RegistryKey, RegistrySecurity) Metoda

Definice

Změní atributy zabezpečení existujícího klíče registru.

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)

Parametry

key
RegistryKey

Existující klíč registru.

registrySecurity
RegistrySecurity

Informace o zabezpečení, které se mají použít pro klíč registru.

Platí pro