Class ReferrerCriterion
Criterion for visitor groups that checks the referrer
Inheritance
System.Object
    
    
    ReferrerCriterion
  Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
[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, IGeneratesAdministrativeInterfaceConstructors
ReferrerCriterion()
Initializes a new instance of the ReferrerCriterion class.
Declaration
public ReferrerCriterion()ReferrerCriterion(IStateStorage)
Initializes a new instance of the ReferrerCriterion class.
Declaration
public ReferrerCriterion(IStateStorage stateStorage)Parameters
| Type | Name | Description | 
|---|---|---|
| IStateStorage | stateStorage | state storage | 
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(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.ReferrerModel>.GetUri(Microsoft.AspNetCore.Http.HttpContext)
  
  
  
  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 | 
 | 
Overrides
EPiServer.Personalization.VisitorGroups.Criteria.UriSessionStartCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ReferrerModel>.IsMatch(System.Uri)
  