JsonObject.IDictionary<String,JsonNode>.TryGetValue Metodo

Definizione

Ottiene il valore associato al nome della proprietà specificato.

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue(System::String ^ propertyName, [Runtime::InteropServices::Out] System::Text::Json::Nodes::JsonNode ^ % jsonNode) = System::Collections::Generic::IDictionary<System::String ^, System::Text::Json::Nodes::JsonNode ^>::TryGetValue;
bool IDictionary<string,JsonNode>.TryGetValue (string propertyName, out System.Text.Json.Nodes.JsonNode jsonNode);
abstract member System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue : string * JsonNode -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue : string * JsonNode -> bool
Function TryGetValue (propertyName As String, ByRef jsonNode As JsonNode) As Boolean Implements IDictionary(Of String, JsonNode).TryGetValue

Parametri

propertyName
String

Nome della proprietà del valore da ottenere.

jsonNode
JsonNode

Quando termina, questo metodo contiene il valore associato al nome della proprietà specificato, se viene trovato il nome della proprietà; in caso contrario, null.

Restituisce

true se contiene JsonObject un elemento con il nome della proprietà specificato; in caso contrario, false.

Eccezioni

propertyName è null.

Si applica a