Export (0) Print
Expand All

AccessRule.AccessRule Constructor

Initializes a new instance of the AccessRule class by using the specified values.

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

protected AccessRule (
	IdentityReference identity,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	AccessControlType type
)
protected AccessRule (
	IdentityReference identity, 
	int accessMask, 
	boolean isInherited, 
	InheritanceFlags inheritanceFlags, 
	PropagationFlags propagationFlags, 
	AccessControlType type
)
protected function AccessRule (
	identity : IdentityReference, 
	accessMask : int, 
	isInherited : boolean, 
	inheritanceFlags : InheritanceFlags, 
	propagationFlags : PropagationFlags, 
	type : AccessControlType
)
Not applicable.

Parameters

identity

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

accessMask

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

true if this rule is inherited from a parent container.

inheritanceFlags

The inheritance properties of the access rule.

propagationFlags

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

type

The valid access control type.

Exception typeCondition

ArgumentException

The value of the identity parameter cannot be cast as a SecurityIdentifier, or the type parameter contains an invalid value.

ArgumentOutOfRangeException

The value of the accessMask parameter is zero, or the inheritanceFlags or propagationFlags parameters contain unrecognized flag values.

Notes to Implementers: This method should not be used by integrators. Integrators should never create inherited rules.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft