Class SearchWordReferrerCriterion
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Criterion for visitor groups that checks the referrer query string
Inheritance
System.Object
SearchWordReferrerCriterion
Inherited Members
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.Cms.AspNet.dll
Version: 11.20.7Syntax
[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()
Initializes a new instance of the SearchWordReferrerCriterion class.
Declaration
public SearchWordReferrerCriterion()
SearchWordReferrerCriterion(IStateStorage)
Initializes a new instance of the SearchWordReferrerCriterion class.
Declaration
public SearchWordReferrerCriterion(IStateStorage stateStorage)
Parameters
Type | Name | Description |
---|---|---|
IStateStorage | stateStorage |
Properties
SearchPatternRegex
Gets the search pattern regex for search engines matches.
Declaration
public virtual string SearchPatternRegex { get; }
Property Value
Type | Description |
---|---|
System.String | The search pattern regex. |
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(HttpContextBase)
Gets the request referrer URI from the http context.
Declaration
protected override Uri GetUri(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
System.Uri |
Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.SearchWordModel>.GetUri(System.Web.HttpContextBase)
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 |
|
Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.SearchWordModel>.IsMatch(System.Uri)