ITimeZoneFactoryFindAsync Method

Gets a IdtTimeZone from the cache.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
Task<IdtTimeZone> FindAsync(
	string? zoneName,
	ZoneNotFoundBehavior zoneNotFoundBehavior = ZoneNotFoundBehavior.ThrowOnNotFound
)

Parameters

zoneName  String
The name of the IdtTimeZone to find.
zoneNotFoundBehavior  ZoneNotFoundBehavior  (Optional)
Determines the behavior of the method if the zone specified in zoneName cannot be found.

Return Value

TaskIdtTimeZone
A IdtTimeZone.

Exceptions

ArgumentExceptionThe zone named in zoneName cannot be found andzoneNotFoundBehavior is ThrowOnNotFound.
ArgumentExceptionThe zone named in zoneName could be found, but one of its change rules was missing andzoneNotFoundBehavior is ThrowOnNotFound.

See Also