Class DateTimeToken
A Token represent date/time tokens.
Implements
Inherited Members
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
Value
position of segment within the segment
Declaration
[DataMember(Name = "value")]
public DateTime Value { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |