JsonObject.GetNamedArray JsonObject.GetNamedArray JsonObject.GetNamedArray JsonObject.GetNamedArray Method

Definition

Overloads

GetNamedArray(String) GetNamedArray(String) GetNamedArray(String) GetNamedArray(String)

Gets the JsonArray value with the specified name.

GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray)

Gets the JsonArray value with the specified name, or the provided default value if no such named value is found.

GetNamedArray(String) GetNamedArray(String) GetNamedArray(String) GetNamedArray(String)

Gets the JsonArray value with the specified name.

public : JsonArray GetNamedArray(Platform::String name)
JsonArray GetNamedArray(winrt::hstring name) const;
public JsonArray GetNamedArray(String name)
Public Function GetNamedArray(name As String) As JsonArray
Parameters
name
String String

The name.

Returns

The JsonArray with the specified name.

Remarks

This method should always used with a try/catch block because it throws an exception if the name found is not a JsonArray type or the name is not found.

See Also

GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray) GetNamedArray(String, JsonArray)

Gets the JsonArray value with the specified name, or the provided default value if no such named value is found.

public : JsonArray GetNamedArray(Platform::String name, JsonArray defaultValue)
JsonArray GetNamedArray(winrt::hstring name, JsonArray defaultValue) const;
public JsonArray GetNamedArray(String name, JsonArray defaultValue)
Public Function GetNamedArray(name As String, defaultValue As JsonArray) As JsonArray
Parameters
name
String String

The name.

defaultValue
JsonArray JsonArray

The default value to use if the JSON property is not found.

Returns

The JsonArray with the specified name, or if this value wasn't found, the defaultValue is returned.

See Also