Class StartUrlCriterion

Visitor group criterion that will match the request parameters with the values stored in the settings

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<StartUrlModel>
StartUrlCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.StartUrlModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.StartUrlModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.StartUrlModel>.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 first incomping URL with a specified value", DisplayName = "First Incoming URL", LanguagePath = "/shell/cms/visitorgroups/criteria/starturl")]
public class StartUrlCriterion : UriSessionStartCriterionBase<StartUrlModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

StartUrlCriterion()

Initializes a new instance of the StartUrlCriterion class.

Declaration
public StartUrlCriterion()

StartUrlCriterion(Func<Uri>)

Initializes a new instance of the StartUrlCriterion class.

Declaration
public StartUrlCriterion(Func<Uri> GetExternalUrl)
Parameters
Type Name Description
System.Func<System.Uri> GetExternalUrl

External dependency for resolving external URL through the URL rewriter

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.StartUrlModel>.SessionKey

Methods

GetUri(HttpContextBase)

Gets the request URI from 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.StartUrlModel>.GetUri(System.Web.HttpContextBase)

IsMatch(Uri)

Determines whether the specified URI is match.

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

The URI.

Returns
Type Description
System.Boolean

true if the specified URI is match; otherwise, false.

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

Implements

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

Extension Methods