Search Results for

    Show / Hide Table of Contents

    Class DateTimeToken

    A Token represent date/time tokens.

    Inheritance
    object
    Token
    DateTimeToken
    Implements
    ICloneable<Token>
    Inherited Members
    Token.Clone()
    Token.ToString()
    Token.Text
    Token.Span
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Sdl.Core.Bcm.BcmModel.Tokenization.Tokens
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    [DataContract]
    public class DateTimeToken : Token, ICloneable<Token>

    Constructors

    DateTimeToken()

    Initializes a new instance of the DateTimeToken class.

    Declaration
    public DateTimeToken()

    DateTimeToken(string, DateTime, DateTimePatternType)

    Initializes a new instance with the specified values.

    Declaration
    public DateTimeToken(string text, DateTime dateTime, DateTimePatternType type)
    Parameters
    Type Name Description
    string text

    The text to assign to the token

    DateTime dateTime

    The DateTime object to assign to the token's value

    DateTimePatternType type

    The type of the date or time token

    Properties

    DateTimeType

    position of segment within the segment

    Declaration
    [DataMember(Name = "dateTimeType")]
    public DateTimePatternType DateTimeType { get; set; }
    Property Value
    Type Description
    DateTimePatternType

    Type

    Gets the type of Token.

    Declaration
    [DataMember(Name = "type")]
    protected override string Type { get; }
    Property Value
    Type Description
    string

    The type.

    Overrides
    Token.Type

    Value

    position of segment within the segment

    Declaration
    [DataMember(Name = "value")]
    public DateTime Value { get; set; }
    Property Value
    Type Description
    DateTime

    Implements

    ICloneable<T>

    See Also

    Token
    In this article
    Back to top Generated by DocFX