Click or drag to resize

PropertyStringParserGetDateTimeOffset(String, DateTimeOffset) Method

Gets a property as an DateTimeOffset value.

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

Parameters

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

Return Value

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