Share via


JsonObject.IDictionary<String,JsonNode>.TryGetValue Método

Definición

Obtiene el valor asociado al nombre de propiedad especificado.

 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

Parámetros

propertyName
String

Nombre de propiedad del valor que se va a obtener.

jsonNode
JsonNode

Cuando este método devuelve, contiene el valor asociado al nombre de propiedad especificado, si se encuentra el nombre de la propiedad; de lo contrario, null.

Devoluciones

trueJsonObject es si contiene un elemento con el nombre de propiedad especificado; de lo contrario, falsees .

Excepciones

propertyName es null.

Se aplica a