Click or drag to resize

PropertyStringParserGetDateTime(String, DateTime) Method

Gets a property as an DateTime value.

Namespace: Altaxo.Main.Properties
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public DateTime GetDateTime(
	string key,
	DateTime defaultValue
)

Parameters

key  String
The property key.
defaultValue  DateTime
The default value that is returned if the property was not found.

Return Value

DateTime
The value of the property as DateTime value; or defaultValue if the property was not found.
Exceptions
ExceptionCondition
InvalidOperationExceptionIs thrown if the property could not be successfully parsed as DateTime.
See Also