TimeZoneFactoryFindAsync Method

Gets a IdtTimeZone from the cache.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public 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.

Implements

ITimeZoneFactoryFindAsync(String, ZoneNotFoundBehavior)

Exceptions

ArgumentExceptionThe zone named in zoneName cannot be found andzoneNotFoundBehavior is ThrowOnNotFound.

See Also