WindowsTimeChangeRuleParserParse(String, Boolean) Method

Parses a line of text to return the TimeChangeRules that the line represents.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public override TimeChangeRule Parse(
	string ruleText,
	bool throwOnFailure
)

Parameters

ruleText  String
The raw text from the source of timezone information.
throwOnFailure  Boolean
If true, throws an InvalidTimeZoneException if any part of ruleText is invalid.

Return Value

TimeChangeRule
The TimeChangeRules described by ruleText.

Exceptions

ArgumentExceptionruleText does not contain a string that can be parsed into a TimeChangeRule.
InvalidTimeZoneExceptionruleText cannot be understood as a valid TimeZoneRule

See Also