Click or drag to resize

ITimeZoneFactoryFind Method

Gets a IdtTimeZone from the cache.

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.0.8475.0
Syntax
C#
Task<IdtTimeZone> Find(
	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
ExceptionCondition
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