JsonElement.FromFile 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromFile(String) |
从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。 |
FromFile(String, Object) |
从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。 |
FromFile(String)
从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。
public static MonoTouch.Dialog.JsonElement FromFile (string file);
static member FromFile : string -> MonoTouch.Dialog.JsonElement
参数
- file
- String
包含 Json 数据的文件的路径。
返回
JsonElement 的实例;如果文件不存在,或者无法分析 Json 文件的内容,则为 null。
适用于
FromFile(String, Object)
从指定路径处的 Json 文件的内容创建包含其嵌套内容的 RootElement。
public static MonoTouch.Dialog.JsonElement FromFile (string file, object arg);
static member FromFile : string * obj -> MonoTouch.Dialog.JsonElement
参数
- file
- String
包含 Json 数据的文件的路径。
- arg
- Object
传递给“ontap”和“onaccessorytap”调用的回调的参数数据。
返回
JsonElement 的实例;如果文件不存在,或者无法分析 Json 文件的内容,则为 null。