Click or drag to resize
DateTimeContainer Class
Object encapsulating DateTime objects to be accessible via macro engine.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineDateTimeContainer

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public class DateTimeContainer : IDataContainer, 
	ISimpleDataContainer, IConvertible

The DateTimeContainer type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeContainer
Creates new instance of DateTimeContainer.
Top
Methods
  NameDescription
Public methodContainsColumn
Returns true if the object contains specified column.
Public methodEquals
Returns true if date times are same.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns hash code.
(Overrides ObjectGetHashCode.)
Public methodGetTypeCode
Returns the TypeCode for this instance.
Public methodGetValue
Gets or sets the value of the column.
Public methodSetValue
Not implemented.
Public methodToBoolean
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
Public methodToByte
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
Public methodToDateTime
Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.
Public methodToDecimal
Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.
Public methodToDouble
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
Public methodToChar
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
Public methodToInt16
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
Public methodToInt32
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
Public methodToInt64
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
Public methodToSByte
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
Public methodToSingle
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
Public methodToString
Returns string representation of datetime.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Converts the value of this instance to an equivalent String using the specified culture-specific formatting information.
Public methodToType
Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.
Public methodToUInt16
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
Public methodToUInt32
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
Public methodToUInt64
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
Public methodTryGetValue
Returns value of column.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCopyTo
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Top
Properties
  NameDescription
Public propertyColumnNames
Column names.
Public propertyCulture
Gets or sets the culture of the date time (for ToString formatting purposes).
Public propertyDateTime
Gets the encapsulated DateTime.
Public propertyItem
Gets the value of the column, setter is not implemented.
Top
See Also