System.Security.AccessControl.SemaphoreSecurity Members

The members of System.Security.AccessControl.SemaphoreSecurity are listed below.

See Also: Inherited members from System.Security.AccessControl.NativeObjectSecurity

Public Constructors

Initializes a new instance of the System.Security.AccessControl.SemaphoreSecurity class with default values.

Initializes a new instance of the System.Security.AccessControl.SemaphoreSecurity class with the specified sections of the access control security rules from the system semaphore with the specified name.

Public Properties

[read-only]
override
AccessRightTypeType.

Gets the enumeration that the System.Security.AccessControl.SemaphoreSecurity class uses to represent access rights.

[read-only]
override
AccessRuleTypeType.

Gets the type that the System.Security.AccessControl.SemaphoreSecurity class uses to represent access rules.

[read-only]
override
AuditRuleTypeType.

Gets the type that the System.Security.AccessControl.SemaphoreSecurity class uses to represent audit rules.

Public Methods

override
AccessRuleFactory(System.Security.Principal.IdentityReference, int, bool, InheritanceFlags, PropagationFlags, AccessControlType) : AccessRule

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

AddAccessRule(SemaphoreAccessRule)

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

AddAuditRule(SemaphoreAuditRule)

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

override
AuditRuleFactory(System.Security.Principal.IdentityReference, int, bool, InheritanceFlags, PropagationFlags, AuditFlags) : AuditRule

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

RemoveAccessRule(SemaphoreAccessRule) : bool

Searches for an access control rule with the same user and System.Security.AccessControl.AccessControlType (allow or deny) as the specified 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(SemaphoreAccessRule)

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

RemoveAccessRuleSpecific(SemaphoreAccessRule)

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

RemoveAuditRule(SemaphoreAuditRule) : bool

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(SemaphoreAuditRule)

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

RemoveAuditRuleSpecific(SemaphoreAuditRule)

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

ResetAccessRule(SemaphoreAccessRule)

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

SetAccessRule(SemaphoreAccessRule)

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

SetAuditRule(SemaphoreAuditRule)

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