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

Class TimeOfDayCriterion

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A criterion for matching a time range in day.

Inheritance
System.Object
TimeOfDayCriterion
Inherited Members
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.Cms.AspNet.dll
Version: 11.20.7
Syntax
[VisitorGroupCriterion(Category = "Time and Place Criteria", Description = "Match specific time period in day", DisplayName = "Time of Day", LanguagePath = "/shell/cms/visitorgroups/criteria/timeofday", ScriptUrl = "ClientResources/Criteria/TimeOfDay.js")]
public class TimeOfDayCriterion : CriterionBase<TimeOfDayModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

TimeOfDayCriterion()

Initializes a new instance of the TimeOfDayCriterion class.

Declaration
public TimeOfDayCriterion()

TimeOfDayCriterion(ICurrentTimeProvider)

Initializes a new instance of the TimeOfDayCriterion class.

Declaration
public TimeOfDayCriterion(ICurrentTimeProvider currentTimeProvider)
Parameters
Type Name Description
ICurrentTimeProvider currentTimeProvider

The current time provider.

Methods

IsMatch(IPrincipal, HttpContextBase)

Determines whether the specified principal is a member of this role.

Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal.

System.Web.HttpContextBase httpContext

The current http context

Returns
Type Description
System.Boolean

true if the specified principal is in the virtual role; otherwise, false.

Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)
Remarks

The context parameter may be null but can be used to transfer external context to a Virtual role provider

Implements

Extension Methods