JsonValue.Item[] 屬性

定義

多載

Item[Int32]
Item[String]

Item[Int32]

來源:
JsonValue.cs
public:
 virtual property System::Json::JsonValue ^ default[int] { System::Json::JsonValue ^ get(int index); void set(int index, System::Json::JsonValue ^ value); };
public virtual System.Json.JsonValue this[int index] { get; set; }
member this.Item(int) : System.Json.JsonValue with get, set
Default Public Overridable Property Item(index As Integer) As JsonValue

參數

index
Int32

屬性值

備註

注意

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

適用於

Item[String]

來源:
JsonValue.cs
public:
 virtual property System::Json::JsonValue ^ default[System::String ^] { System::Json::JsonValue ^ get(System::String ^ key); void set(System::String ^ key, System::Json::JsonValue ^ value); };
public virtual System.Json.JsonValue this[string key] { get; set; }
member this.Item(string) : System.Json.JsonValue with get, set
Default Public Overridable Property Item(key As String) As JsonValue

參數

key
String

屬性值

備註

注意

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

適用於