JsonObject.GetNamedObject JsonObject.GetNamedObject JsonObject.GetNamedObject JsonObject.GetNamedObject Method

Definition

Overloads

GetNamedObject(String) GetNamedObject(String) GetNamedObject(String) GetNamedObject(String)

Gets the JsonObject value with the specified name.

GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject)

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

GetNamedObject(String) GetNamedObject(String) GetNamedObject(String) GetNamedObject(String)

Gets the JsonObject value with the specified name.

public : JsonObject GetNamedObject(Platform::String name)
JsonObject GetNamedObject(winrt::hstring name) const;
public JsonObject GetNamedObject(String name)
Public Function GetNamedObject(name As String) As JsonObject
Parameters
name
String String

The name.

Returns

The JsonObject value 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 JsonObject type or the name is not found.

See Also

GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject) GetNamedObject(String, JsonObject)

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

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

The name.

defaultValue
JsonObject JsonObject JsonObject JsonObject

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

Returns

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

See Also