JsonElement.FromFile 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.
Overloads
FromFile(String) |
Creates a RootElement with its nested content from the contents of the Json file at the specified path. |
FromFile(String, Object) |
Creates a RootElement with its nested content from the contents of the Json file at the specified path. |
FromFile(String)
Creates a RootElement with its nested content from the contents of the Json file at the specified path.
public static MonoTouch.Dialog.JsonElement FromFile (string file);
static member FromFile : string -> MonoTouch.Dialog.JsonElement
Parameters
- file
- String
Path to the file containing the Json Data.
Returns
An instance of the JsonElement or null if the file does not exist, or the contents of the Json file can not be parsed.
Applies to
FromFile(String, Object)
Creates a RootElement with its nested content from the contents of the Json file at the specified path.
public static MonoTouch.Dialog.JsonElement FromFile (string file, object arg);
static member FromFile : string * obj -> MonoTouch.Dialog.JsonElement
Parameters
- file
- String
Path to the file containing the Json Data.
- arg
- Object
Parameter data passed to callbacks for the "ontap" and "onaccessorytap" calls.
Returns
An instance of the JsonElement or null if the file does not exist, or the contents of the Json file can not be parsed.