CSXmlParserGetParameterAsDateTime Method (String, DateTime) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Returns a parameter as a DateTime. The value must be possible to convert to a DateTime.

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

public DateTime GetParameterAsDateTime(
	string parameterName,
	DateTime defaultValue
)

Parameters

parameterName
Type: SystemString
The name of the parameter to return
defaultValue
Type: SystemDateTime
The value to return if the parameter does not exists

Return Value

Type: DateTime
The value as a DateTime
Exceptions

ExceptionCondition
InvalidCastExceptionThe parameter value cannot be converted to the return type.
See Also

Reference