JsonObject.Add メソッド

定義

オーバーロード

Add(KeyValuePair<String,JsonNode>)

指定した プロパティを に追加します JsonObject

Add(String, JsonNode)

指定されたプロパティ名と値を持つ要素を に追加します JsonObject

Add(KeyValuePair<String,JsonNode>)

ソース:
JsonObject.IDictionary.cs
ソース:
JsonObject.IDictionary.cs
ソース:
JsonObject.IDictionary.cs

指定した プロパティを に追加します JsonObject

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Text::Json::Nodes::JsonNode ^> property);
public void Add (System.Collections.Generic.KeyValuePair<string,System.Text.Json.Nodes.JsonNode?> property);
abstract member Add : System.Collections.Generic.KeyValuePair<string, System.Text.Json.Nodes.JsonNode> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, System.Text.Json.Nodes.JsonNode> -> unit
Public Sub Add (property As KeyValuePair(Of String, JsonNode))

パラメーター

property
KeyValuePair<String,JsonNode>

に追加 JsonObjectするプロパティ名と値を表す KeyValuePair 構造体。

実装

例外

同じプロパティ名を持つ要素が に既に JsonObject存在します。

property プロパティ名は です null

適用対象

Add(String, JsonNode)

ソース:
JsonObject.IDictionary.cs
ソース:
JsonObject.IDictionary.cs
ソース:
JsonObject.IDictionary.cs

指定されたプロパティ名と値を持つ要素を に追加します JsonObject

public:
 virtual void Add(System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value);
public void Add (string propertyName, System.Text.Json.Nodes.JsonNode? value);
abstract member Add : string * System.Text.Json.Nodes.JsonNode -> unit
override this.Add : string * System.Text.Json.Nodes.JsonNode -> unit
Public Sub Add (propertyName As String, value As JsonNode)

パラメーター

propertyName
String

追加する要素のプロパティ名。

value
JsonNode

追加する要素の値。

実装

例外

propertyNamenull です。

同じプロパティ名を持つ要素が に既に JsonObject存在します。

適用対象