Class ViewedPagesCriterion
Matches users who has at least once visited the selected page.
Inheritance
System.Object
ViewedPagesCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ViewedPagesCriterion : CriterionBase<ViewedPagesModel>
Constructors
ViewedPagesCriterion()
Declaration
public ViewedPagesCriterion()
Methods
IsMatch(IPrincipal, HttpContextBase)
Returns true when the user has visited the selected page.
Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | |
System.Web.HttpContextBase | httpContext |
Returns
Type | Description |
---|---|
System.Boolean |
Subscribe(ICriterionEvents)
Subscribes to the visited page event.
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents |
Unsubscribe(ICriterionEvents)
Unsubscribes from the visited page event.
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents |