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

Definição

Obtém o valor associado ao nome da propriedade 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

O nome da propriedade é o valor a receber.

jsonNode
JsonNode

Quando este método retorna, contém o valor associado ao nome da propriedade especificado, caso o nome da propriedade seja encontrado; caso contrário, null.

Devoluções

true se o JsonObject contiver um elemento com o nome de propriedade especificado; caso contrário, false.

Exceções

propertyName é null.

Aplica-se a