Class ReferrerCriterion

Criterion for visitor groups that checks the referrer

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<ReferrerModel>
ReferrerCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ReferrerModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ReferrerModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ReferrerModel>.EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface.ModelType
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
[VisitorGroupCriterion(Category = "URL Criteria", Description = "Match the referred URL with a specified value", DisplayName = "Referrer", LanguagePath = "/shell/cms/visitorgroups/criteria/referrer")]
public class ReferrerCriterion : UriSessionStartCriterionBase<ReferrerModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

ReferrerCriterion()

Declaration
public ReferrerCriterion()

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.ReferrerModel>.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.ReferrerModel>.GetUri(System.Web.HttpContextBase)

IsMatch(Uri)

Determines whether the specified URi referrer match specified value.

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

The URi referrer.

Returns
Type Description
System.Boolean

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

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

Implements

EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface

Extension Methods