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 do valor a ser obtido.

jsonNode
JsonNode

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

Retornos

Boolean

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

Exceções

propertyName é null.

Aplica-se a