Class ViewedPagesModel
Model for the ViewedPagesCriterion.
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public class ViewedPagesModel : CriterionModelBase, ICriterionModel, IDynamicData, IValidateCriterionModelConstructors
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  | 
Properties
ViewedPage
The selected page.
Declaration
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 | 
|---|---|
| ICriterionModel | A new object that is a copy of this instance. | 
Overrides
GetViewedPageLink()
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 | 
|---|---|---|
| VisitorGroup | currentGroup | The current group. | 
Returns
| Type | Description | 
|---|---|
| CriterionValidationResult | 
