Noda Time
FromStream Method (stream)
NamespacesNodaTime.TimeZonesTzdbDateTimeZoneSourceFromStream(Stream)

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

Creates an instance from a stream in the custom Noda Time format. The stream must be readable.
Declaration Syntax
C#Visual BasicVisual C++
public static TzdbDateTimeZoneSource FromStream(
	Stream stream
)
Public Shared Function FromStream ( _
	stream As Stream _
) As TzdbDateTimeZoneSource
public:
static TzdbDateTimeZoneSource^ FromStream(
	Stream^ stream
)
Parameters
stream (Stream)
The stream containing time zone data
Return Value
A TzdbDateTimeZoneSource providing information from the given stream.
Remarks

The stream is not closed by this method, but will be read from without rewinding. A successful call will read the stream to the end.

See the user guide for instructions on how to generate an updated time zone database file from a copy of the (textual) tz database.

Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
InvalidNodaDataExceptionThe stream contains invalid time zone data, or data which cannot be read by this version of Noda Time.
IOExceptionReading from the stream failed.
InvalidOperationExceptionThe supplied stream doesn't support reading.

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