ObjectSecurity.AccessRuleFactory Method

Note: This method is new in the .NET Framework version 2.0.

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: