JsonObject.TryAdd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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