JsonObject.Item[String] 屬性

定義

取得或設定具有指定索引鍵的項目。

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

參數

key
String

要取得或設定之項目的索引鍵。

屬性值

具有指定索引鍵的項目。

實作

備註

注意

命名空間 System.Json 是針對不再支援的 Silverlight 所設計。 若要處理 JSON,建議您改用 命名空間中的 System.Text.Json API。

適用於