Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

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.7.1.23 (3.7.1.23)

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

ExceptionCondition
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