Class ViewedPagesModel

Model for the ViewedPagesCriterion.

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionModelBase
ViewedPagesModel
Implements
EPiServer.Personalization.VisitorGroups.ICriterionModel
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel
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
public class ViewedPagesModel : CriterionModelBase, ICriterionModel, IDynamicData, IValidateCriterionModel

Constructors

ViewedPagesModel()

Initializes a new instance of the ViewedPagesModel class.

Declaration
public ViewedPagesModel()

ViewedPagesModel(LocalizationService)

Initializes a new instance of the ViewedPagesModel class.

Declaration
public ViewedPagesModel(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService

The resource locator that should be used by the current instance. Can be null.

Properties

ViewedPage

The selected page.

Declaration
[DojoWidget(WidgetType = "epi.cms.form.PageInfoPicker")]
public PageInfo ViewedPage { get; set; }
Property Value
Type Description
PageInfo

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()

Gets the page link referenced by this model.

Declaration
public PageReference GetViewedPageLink()
Returns
Type Description
PageReference

Validate(VisitorGroup)

Validates the specified current group.

Declaration
public CriterionValidationResult Validate(VisitorGroup currentGroup)
Parameters
Type Name Description
EPiServer.Personalization.VisitorGroups.VisitorGroup currentGroup

The current group.

Returns
Type Description
EPiServer.Personalization.VisitorGroups.CriterionValidationResult

Implements

EPiServer.Personalization.VisitorGroups.ICriterionModel
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel

Extension Methods