你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JsonExtensions.ToJObjectWithValue(IDictionary, IEnumerable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts an IDictionary object to Newtonsoft.Json.Linq.JObject with an extra level labeled as "value".
public static Newtonsoft.Json.Linq.JObject ToJObjectWithValue (this System.Collections.IDictionary dict, System.Collections.IEnumerable keys = default);
static member ToJObjectWithValue : System.Collections.IDictionary * System.Collections.IEnumerable -> Newtonsoft.Json.Linq.JObject
<Extension()>
Public Function ToJObjectWithValue (dict As IDictionary, Optional keys As IEnumerable = Nothing) As JObject
Parameters
- dict
- IDictionary
The IDictionary object.
- keys
- IEnumerable
The key set to extract from the IDictionary object. Default is all keys.
Returns
Newtonsoft.Json.Linq.JObject
The conversion result.