November Happy Hour will be moved to Thursday December 5th.

Class SearchWordReferrerCriterion

Criterion for visitor groups that checks the referrer query string

Inheritance
System.Object
SearchWordReferrerCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
[VisitorGroupCriterion(Category = "URL Criteria", Description = "Match the search word with a specified value", DisplayName = "Search Keyword", LanguagePath = "/shell/cms/visitorgroups/criteria/searchwordreferrer")]
public class SearchWordReferrerCriterion : UriSessionStartCriterionBase<SearchWordModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

SearchWordReferrerCriterion(SearchWordCriterionOptions, IStateStorage)

Initializes a new instance of the SearchWordReferrerCriterion class.

Declaration
public SearchWordReferrerCriterion(SearchWordCriterionOptions options, IStateStorage stateStorage)
Parameters
Type Name Description
SearchWordCriterionOptions options
IStateStorage stateStorage

Properties

SessionKey

Gets the session key.

Declaration
public override string SessionKey { get; }
Property Value
Type Description
System.String

The cookie key.

Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.SearchWordModel>.SessionKey

Methods

GetUri(HttpContext)

Gets the request referrer URI from the http context.

Declaration
protected override Uri GetUri(HttpContext httpContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext

The HTTP context.

Returns
Type Description
System.Uri
Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.SearchWordModel>.GetUri(Microsoft.AspNetCore.Http.HttpContext)

IsMatch(Uri)

Determines whether the specified URL referrer query match specified value.

Declaration
protected override bool IsMatch(Uri urlReferrer)
Parameters
Type Name Description
System.Uri urlReferrer

The URL referrer.

Returns
Type Description
System.Boolean

true if the specified URL referrer query match specified value; otherwise, false.

Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.SearchWordModel>.IsMatch(System.Uri)

Implements

Extension Methods