TransactedRegistrySecurity.SetAccessRule(TransactedRegistryAccessRule) Method

Definition

Removes all access control rules with the same user and AccessControlType (allow or deny) as the specified rule, and then adds the specified rule.

public:
 void SetAccessRule(Microsoft::PowerShell::Commands::Internal::TransactedRegistryAccessRule ^ rule);
public void SetAccessRule (Microsoft.PowerShell.Commands.Internal.TransactedRegistryAccessRule rule);
override this.SetAccessRule : Microsoft.PowerShell.Commands.Internal.TransactedRegistryAccessRule -> unit
Public Sub SetAccessRule (rule As TransactedRegistryAccessRule)

Parameters

Applies to