JsonObject.Add Metoda

Definicja

Przeciążenia

Add(KeyValuePair<String,JsonValue>)

Dodaje element do elementu ICollection<T>.

Add(String, JsonValue)

Dodaje element z podanym kluczem i wartością do elementu IDictionary<TKey,TValue>.

Add(KeyValuePair<String,JsonValue>)

Źródło:
JsonObject.cs

Dodaje element do elementu ICollection<T>.

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

Parametry

Implementuje

Uwagi

Uwaga

Przestrzeń nazw została zaprojektowana System.Json dla programu Silverlight, który nie jest już obsługiwany. W przypadku przetwarzania kodu JSON zalecamy zamiast tego używanie interfejsów API w System.Text.Json przestrzeni nazw.

Dotyczy

Add(String, JsonValue)

Źródło:
JsonObject.cs

Dodaje element z podanym kluczem i wartością do elementu IDictionary<TKey,TValue>.

public:
 virtual void Add(System::String ^ key, System::Json::JsonValue ^ value);
public void Add (string key, System.Json.JsonValue value);
abstract member Add : string * System.Json.JsonValue -> unit
override this.Add : string * System.Json.JsonValue -> unit
Public Sub Add (key As String, value As JsonValue)

Parametry

key
String

Obiekt, który ma być używany jako klucz elementu do dodania.

value
JsonValue

Obiekt, który ma być używany jako wartość elementu do dodania.

Implementuje

Uwagi

Uwaga

Przestrzeń nazw została zaprojektowana System.Json dla programu Silverlight, który nie jest już obsługiwany. W przypadku przetwarzania kodu JSON zalecamy zamiast tego używanie interfejsów API w System.Text.Json przestrzeni nazw.

Dotyczy