Show / Hide Table of Contents

    Class DateTimeExpression

    Represents an expression which evaluates to True, if current date and time are within specified boundaries.

    Inheritance
    Object
    AuthorizationExpressionBase
    DateTimeExpression
    Implements
    IValidator
    IEquatable<AuthorizationExpressionBase>
    IExtensibleDataObject
    Inherited Members
    AuthorizationExpressionBase.Find<T>()
    AuthorizationExpressionBase.ToString(String, ICollection<AuthorizationExpressionBase>)
    AuthorizationExpressionBase.Title
    AuthorizationExpressionBase.ErrorMessage
    AuthorizationExpressionBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Security
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class DateTimeExpression : AuthorizationExpressionBase, IValidator, IEquatable<AuthorizationExpressionBase>, IExtensibleDataObject

    Constructors

    DateTimeExpression()

    Declaration
    public DateTimeExpression()

    Fields

    ElementName

    Name of the root element when object is serialized to XML.

    Declaration
    public const string ElementName = "TIME"
    Field Value
    Type Description
    String

    Properties

    DayOfWeek

    Gets or sets the day of week (like Sunday, Monday, etc) that expression should accept. If not set, any day is accepted.

    Declaration
    public Weekdays DayOfWeek { get; set; }
    Property Value
    Type Description
    Weekdays

    FromDateTime

    Gets or sets date/time that indicates the beginning of the interval. If not set, any date is accepted.

    Declaration
    public DateTime? FromDateTime { get; set; }
    Property Value
    Type Description
    Nullable<DateTime>

    FromTimeOfDay

    Gets or sets time of the day that indicates the beginning of the time interval. If not set, any time is accepted.

    Declaration
    public TimeSpan? FromTimeOfDay { get; set; }
    Property Value
    Type Description
    Nullable<TimeSpan>

    TimeZoneId

    Gets or sets time zone identifier which corresponds to Id property. The time zone defined here is used for date/times, times of the day, and week days.

    Declaration
    public string TimeZoneId { get; set; }
    Property Value
    Type Description
    String

    ToDateTime

    Gets or sets date/time that indicates the end of the interval. If not set, any date is accepted.

    Declaration
    public DateTime? ToDateTime { get; set; }
    Property Value
    Type Description
    Nullable<DateTime>

    ToTimeOfDay

    Gets or sets time of the day that indicates the end of the time interval. If not set, any time is accepted.

    Declaration
    public TimeSpan? ToTimeOfDay { get; set; }
    Property Value
    Type Description
    Nullable<TimeSpan>

    Methods

    Equals(AuthorizationExpressionBase)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(AuthorizationExpressionBase other)
    Parameters
    Type Name Description
    AuthorizationExpressionBase other

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Equals(AuthorizationExpressionBase)

    Equals(Object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Equals(Object)

    Evaluate(AuthorizationExpressionContext)

    Returns True, if provided identity is authorized to proceed with the service call.

    Declaration
    public override bool Evaluate(AuthorizationExpressionContext context)
    Parameters
    Type Name Description
    AuthorizationExpressionContext context

    Provides the message evaluation context.

    Returns
    Type Description
    Boolean

    True, if provided identity is authorized to proceed with the service call. False, otherwise.

    Overrides
    AuthorizationExpressionBase.Evaluate(AuthorizationExpressionContext)

    GetHashCode()

    Returns hash code for the value of this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code for the value of this instance.

    Overrides
    AuthorizationExpressionBase.GetHashCode()

    ToString()

    Returns string representation of the object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representing the object's content.

    Overrides
    Object.ToString()

    Validate()

    Evaluates the state of the object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Validate()

    Implements

    IValidator
    System.IEquatable<T>
    System.Runtime.Serialization.IExtensibleDataObject
    Back to top Nevatech Sentinet 6.5 Online Documentation