JsonElement.FromFile 方法

定义

重载

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。

适用于