Class ViewedCategoriesCriterion

A criterion that matches after visiting a page with a category.

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<ViewedCategoriesModel>
ViewedCategoriesCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface.ModelType
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.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[VisitorGroupCriterion(Category = "Site Criteria", Description = "Matches after visiting page with category", DisplayName = "Visited Category", LanguagePath = "/shell/cms/visitorgroups/criteria/categories", ScriptUrl = "ClientResources/Criteria/VisitedCategories.js")]
public class ViewedCategoriesCriterion : CriterionBase<ViewedCategoriesModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

ViewedCategoriesCriterion()

Declaration
public ViewedCategoriesCriterion()

Methods

IsMatch(IPrincipal, HttpContextBase)

Matches after the user has visited a page with one of the selected categories.

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
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)

Subscribe(ICriterionEvents)

Subscribes to the VisitedPage event.

Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type Name Description
EPiServer.Personalization.VisitorGroups.ICriterionEvents criterionEvents
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)

Unsubscribe(ICriterionEvents)

Unsubscribes from to the VisitedPage event.

Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type Name Description
EPiServer.Personalization.VisitorGroups.ICriterionEvents criterionEvents
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedCategoriesModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)

Implements

EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface

Extension Methods