你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TwinCollection.ToJson(Formatting) 方法

定义

获取 JSON 字符串格式的 TwinProperties。

public string ToJson (Newtonsoft.Json.Formatting formatting = Newtonsoft.Json.Formatting.None);
member this.ToJson : Newtonsoft.Json.Formatting -> string
Public Function ToJson (Optional formatting As Formatting = Newtonsoft.Json.Formatting.None) As String

参数

formatting
Newtonsoft.Json.Formatting

可选。 输出 JSON 字符串的格式。

返回

JSON 字符串

适用于