Click or drag to resize

PofStreamReaderReadDictionaryTKey, TValue Method (Int32, IDictionaryTKey, TValue)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Read a generic IDictionary<TKey, TValue> of key/value pairs from the POF stream.

Namespace:  Tangosol.IO.Pof
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public virtual IDictionary<TKey, TValue> ReadDictionary<TKey, TValue>(
	int index,
	IDictionary<TKey, TValue> dictionary
)

Parameters

index
Type: SystemInt32
The property index to read.
dictionary
Type: System.Collections.GenericIDictionaryTKey, 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

Type: IDictionaryTKey, TValue
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.

Implements

IPofReaderReadDictionaryTKey, TValue(Int32, IDictionaryTKey, TValue)
Exceptions
ExceptionCondition
InvalidOperationException If the POF stream has already advanced past the desired property.
ArgumentNullException If dictionary is null.
IOException If an I/O error occurs.
See Also