Noda Time
ZoneLocalMappingResolver Delegate
NamespacesNodaTime.TimeZonesZoneLocalMappingResolver

[This is preliminary documentation and is subject to change.]

Resolves the result of attempting to map a local date and time to a target time zone.
Declaration Syntax
C#Visual BasicVisual C++
public delegate ZonedDateTime ZoneLocalMappingResolver(
	ZoneLocalMapping mapping
)
Public Delegate Function ZoneLocalMappingResolver ( _
	mapping As ZoneLocalMapping _
) As ZonedDateTime
public delegate ZonedDateTime ZoneLocalMappingResolver(
	ZoneLocalMapping^ mapping
)
Parameters
mapping (ZoneLocalMapping)
The intermediate result of mapping a local time to a target time zone.
Return Value
A ZonedDateTime in the target time zone.
Remarks

This delegate is consumed by InZone(DateTimeZone, ZoneLocalMappingResolver) and ResolveLocal(LocalDateTime, ZoneLocalMappingResolver), among others. It provides the strategy for converting a ZoneLocalMapping (the result of attempting to map a local date and time to a target time zone) to a ZonedDateTime.

See the Resolvers class for predefined implementations and a way of combining separate SkippedTimeResolver and AmbiguousTimeResolver values.

Exceptions
ExceptionCondition
AmbiguousTimeExceptionThe implementation rejects requests to map ambiguous times.
SkippedTimeExceptionThe implementation rejects requests to map skipped times.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)