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

Class DisplayChannelCriterion

Checks which channels are active for a request

Inheritance
System.Object
DisplayChannelCriterion
Namespace: EPiServer.VisitorGroupsCriteriaPack
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
[VisitorGroupCriterion(Category = "Technical Criteria", Description = "Criterion that matches the display channel", DisplayName = "Display channel", LanguagePath = "/shell/cms/visitorgroups/criteria/displaychannelcriterion")]
public class DisplayChannelCriterion : CriterionBase<DisplayChannelModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

DisplayChannelCriterion()

Declaration
public DisplayChannelCriterion()

Methods

IsMatch(IPrincipal, HttpContext)

Check if criterion is matched

Declaration
public override bool IsMatch(IPrincipal principal, HttpContext httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
Microsoft.AspNetCore.Http.HttpContext httpContext
Returns
Type Description
System.Boolean

True if criterion matches

Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.DisplayChannelModel>.IsMatch(System.Security.Principal.IPrincipal, Microsoft.AspNetCore.Http.HttpContext)

Implements

Extension Methods