Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
IPofReader..::.ReadDateTime Method
IPofReader Interface See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Read a DateTime property from the POF stream.

Namespace: Tangosol.IO.Pof
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    DateTime ReadDateTime(
    	int index
    )

#### Parameters

index
  Type: System..::.Int32
  The property index to read.

#### Return Value

The DateTime property value.

# Remarks

This method will attempt to read both the date and time component from the POF stream. If the value in the stream does not contain both components, the corresponding values in the returned DateTime instance will be set to default values.

If the encoded value in the POF stream contains time zone information, this method will ignore time zone information and return a literal DateTime value, as read from the stream.

# Exceptions

Exception | Condition
--- | ---
System..::.ArgumentException | If the property index is invalid, or is less than or equal to the index of the previous property read from the POF stream.
System.IO..::.IOException | If an I/O error occurs.

# See Also

IPofReader Interface
Tangosol.IO.Pof Namespace