JsonObject.GetNamedArray(String, JsonArray) method

Applies to Windows and Windows Phone

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

Syntax


public JsonArray GetNamedArray(
  string name, 
  JsonArray defaultValue
)

Parameters

name

Type: System.String [.NET] | Platform::String [C++]

The name.

defaultValue

Type: JsonArray

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

Return value

Type: JsonArray

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Json
Windows::Data::Json [C++]

Metadata

Windows.winmd

See also

JsonObject
GetNamedArray(String)

 

 

Show:
© 2014 Microsoft