Class VisitorGroupImpersonationAttribute
When added to an MVC controller this action filter will setup impersonation of visitor group required to view a page as a custom visitor group.
Inheritance
System.Object
VisitorGroupImpersonationAttribute
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class VisitorGroupImpersonationAttribute : ActionFilterAttribute
Constructors
VisitorGroupImpersonationAttribute()
Declaration
public VisitorGroupImpersonationAttribute()
Methods
OnActionExecuting(ActionExecutingContext)
Called before the controller action is executed.
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ActionExecutingContext | filterContext | The filter context. |