Verify that the specific access levels are set for the current user.

Namespace:  EPiServer.Security
Assembly:  EPiServer (in EPiServer.dll) Version: 6.0.530.0

Syntax

C#
public bool QueryDistinctAccess(
	IPrincipal principal,
	AccessLevel access
)

Parameters

principal
Type: System.Security.Principal..::.IPrincipal
The principal to user for access checks.
access
Type: EPiServer.Security..::.AccessLevel
The requested access level

Return Value

True if the combined access level of all entries that apply to the given principal in this ACL has at least the requested access level

Remarks

This is the fastet way to query for access, and is thus the preferred mechanism.

See Also