XmlFilterReaderGetValueAsDateTime Method (String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Gets the value of a column as an DateTime given the column name.

Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public DateTime GetValueAsDateTime(
	string name
)

Parameters

name
Type: SystemString
The column name, this value is case sensitive.

Return Value

Type: DateTime
The column value as a DateTime if the column name was found, null (Nothing in Visual Basic) otherwise.
Exceptions

ExceptionCondition
InvalidOperationExceptionProperty or method is inaccessible for a closed XmlFilterReader.
IndexOutOfRangeExceptionThe column name does not exist on the current record.
InvalidCastExceptionThe column value cannot be converted to DateTime
See Also

Reference