JsonNode.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
取得或設定位於指定索引處的專案。 |
| Item[String] |
取得或設定具有指定屬性名稱的元素。
若未找到該財產,則 |
Item[Int32]
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
取得或設定位於指定索引處的專案。
public:
property System::Text::Json::Nodes::JsonNode ^ default[int] { System::Text::Json::Nodes::JsonNode ^ get(int index); void set(int index, System::Text::Json::Nodes::JsonNode ^ value); };
public System.Text.Json.Nodes.JsonNode? this[int index] { get; set; }
member this.Item(int) : System.Text.Json.Nodes.JsonNode with get, set
Default Public Property Item(index As Integer) As JsonNode
參數
- index
- Int32
要取得或設定的元素的零基指數。
屬性值
例外狀況
index 小於 0 或 index 大於性質數量。
適用於
Item[String]
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
- 來源:
- JsonNode.cs
取得或設定具有指定屬性名稱的元素。
若未找到該財產,則 null 會歸還。
public:
property System::Text::Json::Nodes::JsonNode ^ default[System::String ^] { System::Text::Json::Nodes::JsonNode ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value); };
public System.Text.Json.Nodes.JsonNode? this[string propertyName] { get; set; }
member this.Item(string) : System.Text.Json.Nodes.JsonNode with get, set
Default Public Property Item(propertyName As String) As JsonNode
參數
- propertyName
- String
要回傳的房產名稱。
屬性值
例外狀況
propertyName 是 null。