Read a generic IDictionary<TKey, TValue> of
key/value pairs from the POF stream.
Namespace: Tangosol.IO.PofAssembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.0)
Syntax
C# |
---|
public virtual 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.Implements
IPofReader..::..ReadDictionary<(Of <<'(TKey, TValue>)>>)(Int32, IDictionary<(Of <<'(TKey, TValue>)>>))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. |