Class DisplayChannelCriterion
Checks which channels are active for a request
Inherited Members
Namespace: EPiServer.VisitorGroupsCriteriaPack
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
[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)