Class VisitorGroupHelpers
Contains useful methods when working with the visitor group system.
Inheritance
System.Object
VisitorGroupHelpers
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.Web
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public static class VisitorGroupHelpers
Methods
SetupVisitorGroupImpersonation(HttpContextBase, IContent, AccessLevel)
Setups the visitor group impersonation.
Declaration
public static bool SetupVisitorGroupImpersonation(this HttpContextBase httpContext, IContent content, AccessLevel requiredAccess)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
IContent | content | The content. |
AccessLevel | requiredAccess | The required access. |
Returns
Type | Description |
---|---|
System.Boolean |
SetupVisitorGroupImpersonation(HttpContextBase, PageData, AccessLevel)
Checks if any visitor group impersonation has been requested, and sets the needed information.
Declaration
public static bool SetupVisitorGroupImpersonation(this HttpContextBase httpContext, PageData pageData, AccessLevel requiredAccess)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The context of the current request. |
PageData | pageData | A page used to get the access level for the current user. |
AccessLevel | requiredAccess | The access level needed to perform the impersonation. |
Returns
Type | Description |
---|---|
System.Boolean |
|