Class DateTimeToken
A Token represent date/time tokens.
Implements
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
Value
position of segment within the segment
Declaration
public DateTime Value { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |