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
)
public abstract AccessRule AccessRuleFactory (
	IdentityReference identityReference, 
	int accessMask, 
	boolean isInherited, 
	InheritanceFlags inheritanceFlags, 
	PropagationFlags propagationFlags, 
	AccessControlType type
)
public abstract function AccessRuleFactory (
	identityReference : IdentityReference, 
	accessMask : int, 
	isInherited : boolean, 
	inheritanceFlags : InheritanceFlags, 
	propagationFlags : PropagationFlags, 
	type : AccessControlType
) : AccessRule
Not applicable.

Parameters

identityReference

The identity to which the access rule applies. It 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

Specifies the inheritance properties of the access rule.

propagationFlags

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

type

Specifies the valid access control type.

Return Value

The AccessRule object that this method creates.

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
Show: