CalendarSystem ForId Method Noda Time

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

Fetches a calendar system by its unique identifier. This provides full round-tripping of a calendar system. It is not guaranteed that calling this method twice with the same identifier will return identical references, but the references objects will be equal.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: (

public static CalendarSystem ForId(
	string id


Type: OnlineSystem String
The ID of the calendar system. This is case-sensitive.

Return Value

Type: CalendarSystem
The calendar system with the given ID.

OnlineSystem.Collections.Generic KeyNotFoundExceptionNo calendar system for the specified ID can be found.
OnlineSystem NotSupportedExceptionThe calendar system with the specified ID is known, but not supported on this platform.
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also