Share via


JsonReader.ReadDictionary<T> method

Creates a generic Dictionary<TKey, TValue> with a generic value from the JSON string. This member is reserved for internal use and is not intended to be used directly from your code.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function ReadDictionary(Of T) As Dictionary(Of String, T)
'Usage
Dim instance As JsonReader
Dim returnValue As Dictionary(Of String, T)

returnValue = instance.ReadDictionary()
public Dictionary<string, T> ReadDictionary<T>()

Type parameters

  • T
    The type of the values in the dictionary.

Return value

Type: System.Collections.Generic.Dictionary<String, T>
Dictionary<TKey, TValue> .

Remarks

This method creates a Dictionary<TKey, TValue> with the key of String and the value of Object from the JSON string, and then filters the KeyValuePair with the generic value from the Dictionary<TKey, TValue> into the generic Dictionary<TKey, TValue>.

See also

Reference

JsonReader class

JsonReader members

ReadDictionary overload

Microsoft.SharePoint.Client namespace