System.Security.AccessControl.MutexSecurity.AccessRuleFactory Method

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

Syntax

public override AccessRule AccessRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)

Parameters

identityReference
An System.Security.Principal.IdentityReference that identifies the user or group the rule applies to.
accessMask
A bitwise combination of System.Security.AccessControl.MutexRights values specifying the access rights to allow or deny, cast to an integer.
isInherited
Meaningless for named mutexes, because they have no hierarchy.
inheritanceFlags
Meaningless for named mutexes, because they have no hierarchy.
propagationFlags
Meaningless for named mutexes, because they have no hierarchy.
type
One of the System.Security.AccessControl.AccessControlType values specifying whether the rights are allowed or denied.

Returns

A System.Security.AccessControl.MutexAccessRule object representing the specified rights for the specified user.

Remarks

The recommended way to create access control rules is to use the constructors of the System.Security.AccessControl.MutexAccessRule class.

Note:

Although inheritance and propagation flags are meaningless for named mutexes, it is still possible to specify them. This is not recommended, because it needlessly complicates the maintenance of rules, for example by interfering with the combination of rules that would otherwise be compatible.

Requirements

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0