Share via


TransactedRegistrySecurity Class

Definition

Represents the Windows access control security for a registry key. This class cannot be inherited. This class is specifically to be used with TransactedRegistryKey.

public ref class TransactedRegistrySecurity sealed : System::Security::AccessControl::NativeObjectSecurity
public sealed class TransactedRegistrySecurity : System.Security.AccessControl.NativeObjectSecurity
type TransactedRegistrySecurity = class
    inherit NativeObjectSecurity
Public NotInheritable Class TransactedRegistrySecurity
Inherits NativeObjectSecurity
Inheritance
TransactedRegistrySecurity

Constructors

TransactedRegistrySecurity()

Initializes a new instance of the TransactedRegistrySecurity class with default values.

Properties

AccessRightType

Gets the enumeration type that the TransactedRegistrySecurity class uses to represent access rights.

AccessRuleType

Gets the type that the TransactedRegistrySecurity class uses to represent access rules.

AuditRuleType

Gets the type that the TransactedRegistrySecurity class uses to represent audit rules.

Methods

AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

Creates a new access control rule for the specified user, with the specified access rights, access control, and flags.

AddAccessRule(TransactedRegistryAccessRule)

Searches for a matching access control with which the new rule can be merged. If none are found, adds the new rule.

AddAuditRule(TransactedRegistryAuditRule)

Searches for an audit rule with which the new rule can be merged. If none are found, adds the new rule.

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

Creates a new audit rule, specifying the user the rule applies to, the access rights to audit, the inheritance and propagation of the rule, and the outcome that triggers the rule.

RemoveAccessRule(TransactedRegistryAccessRule)

Searches for an access control rule with the same user and AccessControlType (allow or deny) as the specified access rule, and with compatible inheritance and propagation flags; if such a rule is found, the rights contained in the specified access rule are removed from it.

RemoveAccessRuleAll(TransactedRegistryAccessRule)

Searches for all access control rules with the same user and AccessControlType (allow or deny) as the specified rule and, if found, removes them.

RemoveAccessRuleSpecific(TransactedRegistryAccessRule)

Searches for an access control rule that exactly matches the specified rule and, if found, removes it.

RemoveAuditRule(TransactedRegistryAuditRule)

Searches for an audit control rule with the same user as the specified rule, and with compatible inheritance and propagation flags; if a compatible rule is found, the rights contained in the specified rule are removed from it.

RemoveAuditRuleAll(TransactedRegistryAuditRule)

Searches for all audit rules with the same user as the specified rule and, if found, removes them.

RemoveAuditRuleSpecific(TransactedRegistryAuditRule)

Searches for an audit rule that exactly matches the specified rule and, if found, removes it.

ResetAccessRule(TransactedRegistryAccessRule)

Removes all access control rules with the same user as the specified rule, regardless of AccessControlType, and then adds the specified rule.

SetAccessRule(TransactedRegistryAccessRule)

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

SetAuditRule(TransactedRegistryAuditRule)

Removes all audit rules with the same user as the specified rule, regardless of the AuditFlags value, and then adds the specified rule.

Applies to