JsonObject.TryGetPropertyValue Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| TryGetPropertyValue(String, JsonNode, Int32) | |
| TryGetPropertyValue(String, JsonNode) |
Devuelve el valor de una propiedad con el nombre especificado. |
TryGetPropertyValue(String, JsonNode, Int32)
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
public:
bool TryGetPropertyValue(System::String ^ propertyName, [Runtime::InteropServices::Out] System::Text::Json::Nodes::JsonNode ^ % jsonNode, [Runtime::InteropServices::Out] int % index);
public bool TryGetPropertyValue(string propertyName, out System.Text.Json.Nodes.JsonNode? jsonNode, out int index);
member this.TryGetPropertyValue : string * JsonNode * int -> bool
Public Function TryGetPropertyValue (propertyName As String, ByRef jsonNode As JsonNode, ByRef index As Integer) As Boolean
Parámetros
- propertyName
- String
- jsonNode
- JsonNode
- index
- Int32
Devoluciones
Se aplica a
TryGetPropertyValue(String, JsonNode)
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
Devuelve el valor de una propiedad con el nombre especificado.
public:
bool TryGetPropertyValue(System::String ^ propertyName, [Runtime::InteropServices::Out] System::Text::Json::Nodes::JsonNode ^ % jsonNode);
public bool TryGetPropertyValue(string propertyName, out System.Text.Json.Nodes.JsonNode? jsonNode);
member this.TryGetPropertyValue : string * JsonNode -> bool
Public Function TryGetPropertyValue (propertyName As String, ByRef jsonNode As JsonNode) As Boolean
Parámetros
- propertyName
- String
Nombre de la propiedad que va a devolverse.
- jsonNode
- JsonNode
Valor JSON de la propiedad con el nombre especificado.
Devoluciones
true si se encontró una propiedad con el nombre especificado; de lo contrario, false.