Upravit

Sdílet prostřednictvím


JsonObject.Item[String] Property

Definition

Gets or sets the element with the specified key.

public:
 property System::Json::JsonValue ^ default[System::String ^] { System::Json::JsonValue ^ get(System::String ^ key); void set(System::String ^ key, System::Json::JsonValue ^ value); };
public override sealed System.Json.JsonValue this[string key] { get; set; }
member this.Item(string) : System.Json.JsonValue with get, set
Default Public Overrides NotOverridable Property Item(key As String) As JsonValue

Parameters

key
String

The key of the element to get or set.

Property Value

The element with the specified key.

Implements

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to