Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AccessRuleFactory Method

ObjectSecurity.AccessRuleFactory Method

Initializes a new instance of the AccessRule class with the specified values.

Namespace:  System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public abstract AccessRule AccessRuleFactory(
	IdentityReference identityReference,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	AccessControlType type
)

Parameters

identityReference
Type: System.Security.Principal.IdentityReference

The identity to which the access rule applies. It must be an object that can be cast as a SecurityIdentifier.

accessMask
Type: System.Int32

The access mask of this rule. The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.

isInherited
Type: System.Boolean

true if this rule is inherited from a parent container.

inheritanceFlags
Type: System.Security.AccessControl.InheritanceFlags

Specifies the inheritance properties of the access rule.

propagationFlags
Type: System.Security.AccessControl.PropagationFlags

Specifies whether inherited access rules are automatically propagated. The propagation flags are ignored if inheritanceFlags is set to None.

type
Type: System.Security.AccessControl.AccessControlType

Specifies the valid access control type.

Return Value

Type: System.Security.AccessControl.AccessRule
The AccessRule object that this method creates.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft