DirectoryObjectSecurity.GetAccessRules Method (Boolean, Boolean, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a collection of the access rules associated with the specified security identifier.

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

public AuthorizationRuleCollection GetAccessRules(
	bool includeExplicit,
	bool includeInherited,
	Type targetType
)

Parameters

includeExplicit
Type: System.Boolean

true to include access rules explicitly set for the object.

includeInherited
Type: System.Boolean

true to include inherited access rules.

targetType
Type: System.Type

The security identifier for which to retrieve access rules. This must be an object that can be cast as a SecurityIdentifier object.

Return Value

Type: System.Security.AccessControl.AuthorizationRuleCollection

The collection of access rules associated with the specified SecurityIdentifier object.

.NET Framework
Available since 2.0
Return to top
Show: