Edit

Share via


JsonObject.TryAdd Method

Definition

Overloads

TryAdd(String, JsonNode, Int32)

Source:
JsonObject.IDictionary.cs
public:
 bool TryAdd(System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value, [Runtime::InteropServices::Out] int % index);
public bool TryAdd(string propertyName, System.Text.Json.Nodes.JsonNode? value, out int index);
member this.TryAdd : string * System.Text.Json.Nodes.JsonNode * int -> bool
Public Function TryAdd (propertyName As String, value As JsonNode, ByRef index As Integer) As Boolean

Parameters

propertyName
String
value
JsonNode
index
Int32

Returns

Applies to

TryAdd(String, JsonNode)

Source:
JsonObject.IDictionary.cs
public:
 bool TryAdd(System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value);
public bool TryAdd(string propertyName, System.Text.Json.Nodes.JsonNode? value);
member this.TryAdd : string * System.Text.Json.Nodes.JsonNode -> bool
Public Function TryAdd (propertyName As String, value As JsonNode) As Boolean

Parameters

propertyName
String
value
JsonNode

Returns

Applies to