CryptoKeySecurity.RemoveAccessRule(CryptoKeyAccessRule) Metod

Definition

Tar bort åtkomstregler som innehåller samma säkerhetsidentifierare och åtkomstmask som den angivna åtkomstregeln från DACL (Discretionary Access Control List) som är associerad med det här CryptoKeySecurity-objektet.

public:
 bool RemoveAccessRule(System::Security::AccessControl::CryptoKeyAccessRule ^ rule);
public bool RemoveAccessRule(System.Security.AccessControl.CryptoKeyAccessRule rule);
override this.RemoveAccessRule : System.Security.AccessControl.CryptoKeyAccessRule -> bool
Public Function RemoveAccessRule (rule As CryptoKeyAccessRule) As Boolean

Parametrar

rule
CryptoKeyAccessRule

Åtkomstregeln att ta bort.

Returer

trueom åtkomstregeln har tagits bort. annars . false

Kommentarer

Åtkomstborttagning utförs med hjälp av en komplex algoritm som kan lägga till åtkomstkontrollregler utöver att ta bort dem.

Den här metoden kan inte ta bort åtkomstregeln och returnerar false om arvsregler som är associerade med åtkomstregeln är för komplexa för att borttagningsalgoritmen ska lyckas.

Gäller för