Partager via


RegistryAclExtensions.SetAccessControl(RegistryKey, RegistrySecurity) Méthode

Définition

Change les attributs de sécurité d’une clé de Registre existante.

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)

Paramètres

key
RegistryKey

Clé de Registre existante.

registrySecurity
RegistrySecurity

Informations de sécurité à appliquer à la clé de Registre.

S’applique à