Class ViewedCategoriesModel

Contains settings used by ViewedCategoriesCriterion.

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionModelBase
ViewedCategoriesModel
Implements
EPiServer.Personalization.VisitorGroups.ICriterionModel
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionModelBase.ShallowCopy()
EPiServer.Personalization.VisitorGroups.CriterionModelBase.LocalizationService
EPiServer.Personalization.VisitorGroups.CriterionModelBase.Id
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
[EPiServerDataStore(AutomaticallyRemapStore = true)]
public class ViewedCategoriesModel : CriterionModelBase, ICriterionModel, IDynamicData

Constructors

ViewedCategoriesModel()

Declaration
public ViewedCategoriesModel()

Properties

CategoryGuid

Gets or sets the selected category.

Declaration
public Guid CategoryGuid { get; set; }
Property Value
Type Description
System.Guid
Remarks

Used in the export import context

NumberOfPageViews

Gets or sets the number of different pages that has to be viewed.

Declaration
[DojoWidget(DefaultValue = 0, AdditionalOptions = "{constraints: {min: 0}, selectOnClick: true}")]
public int NumberOfPageViews { get; set; }
Property Value
Type Description
System.Int32

SelectedCategory

Gets or sets the categories to match for a certain criterion.

Declaration
[DojoWidget(SelectionFactoryType = typeof(ViewedCategoriesModel.CategorySelectionFactory), AdditionalOptions = "{ selectOnClick: true }")]
public int SelectedCategory { get; set; }
Property Value
Type Description
System.Int32

Methods

Copy()

Creates a new object that is a copy of the current instance.

Declaration
public override ICriterionModel Copy()
Returns
Type Description
EPiServer.Personalization.VisitorGroups.ICriterionModel

A new object that is a copy of this instance.

Overrides
EPiServer.Personalization.VisitorGroups.CriterionModelBase.Copy()

GetRootCategory()

Gets the root category.

Declaration
public virtual Category GetRootCategory()
Returns
Type Description
Category

Implements

EPiServer.Personalization.VisitorGroups.ICriterionModel

Extension Methods