Class DateTimeTemplateSource
Represents date time template source.
Inheritance
System.Object
DateTimeTemplateSource
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class DateTimeTemplateSource : ITemplateSource
Remarks
The DateTimeTemplateSource can convert template value strings to real date time. You should register DateTimeTemplateSource class in TemplateResolver. Supported constant: Today, TodayStart, Yesterday, YesterdayStart, ThisWeek, ThisWeekStart, ThisMonth, ThisMonthStart, LastMonth, LastMonthStart, ThisYear, ThisYearStart, LastYear, LastYearStart, TodayEnd, YesterdayEnd, ThisWeekEnd, LastWeekEnd, ThisMonthEnd, ThisYearEnd, LastMonthEnd, ThisYearEnd, LastYearEnd.
Constructors
DateTimeTemplateSource()
Initializes a new instance of the DateTimeTemplateSource class.
Declaration
public DateTimeTemplateSource()
Methods
GetValue(String)
Gets the value.
Declaration
public virtual object GetValue(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Object |
Explicit Interface Implementations
ITemplateSource.GetValue(String)
Declaration
object ITemplateSource.GetValue(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Object |