November Happy Hour will be moved to Thursday December 5th.

Class ContentAccessEvaluatorExtensions

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Convenience methods for the IContentAccessEvaluator interface

Inheritance
System.Object
ContentAccessEvaluatorExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public static class ContentAccessEvaluatorExtensions

Methods

GetAccessLevel(IContentAccessEvaluator, IContent)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Retrieves the access level of the current user to the IContent instance.

Declaration
public static AccessLevel GetAccessLevel(this IContentAccessEvaluator evaluator, IContent content)
Parameters
Type Name Description
IContentAccessEvaluator evaluator
IContent content
Returns
Type Description
AccessLevel

HasAccess(IContentAccessEvaluator, IContent, AccessLevel)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Evaluates if the current user has the requested access rights to the provided IContent instance.

Declaration
public static bool HasAccess(this IContentAccessEvaluator evaluator, IContent content, AccessLevel access)
Parameters
Type Name Description
IContentAccessEvaluator evaluator
IContent content
AccessLevel access
Returns
Type Description
System.Boolean

true if the user has the requested access; otherwise false