Class ViewedPagesModel
Model for the Viewed
Inheritance
System.Object
ViewedPagesModel
Implements
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ViewedPagesModel : CriterionModelBase, IValidateCriterionModel
Constructors
ViewedPagesModel()
Initializes a new instance of the Viewed
Declaration
public ViewedPagesModel()
ViewedPagesModel(LocalizationService)
Initializes a new instance of the Viewed
Declaration
public ViewedPagesModel(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
Localization |
localizationService | The resource locator that should be used by the current instance. Can be |
Properties
ViewedPage
The selected page.
Declaration
public PageInfo ViewedPage { get; set; }
Property Value
Type | Description |
---|---|
Page |
Methods
Copy()
Creates a new object that is a copy of the current instance.
Declaration
public override ICriterionModel Copy()
Returns
Type | Description |
---|---|
EPi |
A new object that is a copy of this instance. |
GetViewedPageLink()
Gets the page link referenced by this model.
Declaration
public PageReference GetViewedPageLink()
Returns
Type | Description |
---|---|
Page |
Validate(VisitorGroup)
Validates the specified current group.
Declaration
public CriterionValidationResult Validate(VisitorGroup currentGroup)
Parameters
Type | Name | Description |
---|---|---|
EPi |
currentGroup | The current group. |
Returns
Type | Description |
---|---|
EPi |
Implements
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel