Compartilhar 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
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  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