1 out of 11 rated this helpful - Rate this topic

CommonObjectSecurity.GetAccessRules Method

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

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
)
public AuthorizationRuleCollection GetAccessRules (
	boolean includeExplicit, 
	boolean includeInherited, 
	Type targetType
)
public function GetAccessRules (
	includeExplicit : boolean, 
	includeInherited : boolean, 
	targetType : Type
) : AuthorizationRuleCollection

Parameters

includeExplicit

true to include access rules explicitly set for the object.

includeInherited

true to include inherited access rules.

targetType

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

Return Value

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

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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.