Class ViewedPageCriterionAttribute
When added to an MVC controller this action filter will raise Visited
Inheritance
System.Object
ViewedPageCriterionAttribute
Implements
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class ViewedPageCriterionAttribute : ActionFilterAttribute, IPageFilter, IFilterMetadata
Remarks
This attribute is required for visitor groups based on page views, like
Viewed
Constructors
ViewedPageCriterionAttribute()
Declaration
public ViewedPageCriterionAttribute()
Methods
OnActionExecuted(ActionExecutedContext)
Declaration
public override void OnActionExecuted(ActionExecutedContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
filterContext |
OnPageHandlerExecuted(PageHandlerExecutedContext)
Declaration
public void OnPageHandlerExecuted(PageHandlerExecutedContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context |
OnPageHandlerExecuting(PageHandlerExecutingContext)
Declaration
public void OnPageHandlerExecuting(PageHandlerExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context |
OnPageHandlerSelected(PageHandlerSelectedContext)
Declaration
public void OnPageHandlerSelected(PageHandlerSelectedContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context |
Implements
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata