Search Results for

    Show / Hide Table of Contents

    Class DateTimeToken

    A Token represent date/time tokens.

    Inheritance
    System.Object
    Token
    DateTimeToken
    Implements
    ICloneable<Token>
    Inherited Members
    Token.Clone()
    Token.ToString()
    Token.Text
    Token.Span
    Namespace: Sdl.Core.Bcm.BcmModel.Tokenization.Tokens
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    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
    System.String text

    The text to assign to the token

    System.DateTime dateTime

    The System.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
    public DateTimePatternType DateTimeType { get; set; }
    Property Value
    Type Description
    DateTimePatternType

    Type

    Gets the type of Token.

    Declaration
    protected override string Type { get; }
    Property Value
    Type Description
    System.String

    The type.

    Overrides
    Token.Type

    Value

    position of segment within the segment

    Declaration
    public DateTime Value { get; set; }
    Property Value
    Type Description
    System.DateTime

    Implements

    ICloneable<T>

    See Also

    Token

    On this page

    Back to top Generated by DocFX