JsonElement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
JsonElement(String, String) |
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。 |
JsonElement(String, Group, String) |
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。 |
JsonElement(String, Int32, Int32, String) |
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。 |
JsonElement(String, String)
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。
public JsonElement (string caption, string url);
new MonoTouch.Dialog.JsonElement : string * string -> MonoTouch.Dialog.JsonElement
参数
- caption
- String
元素的标题。
- url
- String
要从中加载 Json 数据的 URL。
注解
使用采用 URL 的构造函数创建 Json 元素时,将在选择 Json 元素时按需加载嵌套内容的数据。
加载数据后,UI 将转换为加载的数据。
适用于
JsonElement(String, Group, String)
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。
public JsonElement (string caption, MonoTouch.Dialog.Group group, string url);
new MonoTouch.Dialog.JsonElement : string * MonoTouch.Dialog.Group * string -> MonoTouch.Dialog.JsonElement
参数
- caption
- String
元素的标题。
- group
- Group
包含复选框或单选信息的组。 这用于在节内呈现 RootElement 时显示摘要信息。
- url
- String
要从中加载 Json 数据的 URL。
注解
使用采用 URL 的构造函数创建 Json 元素时,将在选择 Json 元素时按需加载嵌套内容的数据。
加载数据后,UI 将转换为加载的数据。
适用于
JsonElement(String, Int32, Int32, String)
从指定 URL 处的 Json 文件的内容创建包含其嵌套内容的 RootElement。
public JsonElement (string caption, int section, int element, string url);
new MonoTouch.Dialog.JsonElement : string * int * int * string -> MonoTouch.Dialog.JsonElement
参数
- caption
- String
元素的标题。
- section
- Int32
- element
- Int32
包含此 RootSection 摘要的节内的元素索引。
- url
- String
要从中加载 Json 数据的 URL。
注解
使用采用 URL 的构造函数创建 Json 元素时,将在选择 Json 元素时按需加载嵌套内容的数据。
加载数据后,UI 将转换为加载的数据。