Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
IPofReader..::.ReadDictionary<(Of <(TKey, TValue>)>) Method (Int32, IDictionary<(Of <(TKey, TValue>)>))
IPofReader Interface See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Read a generic IDictionary<TKey, TValue> of key/value pairs from the POF stream.

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

# Syntax

C#
    IDictionary<TKey, TValue> ReadDictionary<TKey, TValue>(
    	int index,
    	IDictionary<TKey, TValue> dictionary
    )

#### Parameters

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

dictionary
  Type: System.Collections.Generic..::.IDictionary<(Of <(TKey, TValue>)>)
  The optional IDictionary<TKey, TValue> to initialize.

# Type Parameters

TKey
  The type of the keys in the dictionary.
TValue
  The type of the values in the dictionary.

#### Return Value

An IDictionary<TKey, TValue> of key/value pairs object values, or null if no dictionary is passed and there is no key/value data in the POF 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..::.ArgumentNullException | If dictionary is null.
System.IO..::.IOException | If an I/O error occurs.

# See Also

IPofReader Interface
ReadDictionary Overload
Tangosol.IO.Pof Namespace