JsonObject.TryGetPropertyValue(String, JsonNode) Méthode

Définition

Retourne la valeur d’une propriété portant le nom spécifié.

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

Paramètres

propertyName
String

Nom de la propriété à retourner.

jsonNode
JsonNode

Valeur JSON de la propriété avec le nom spécifié.

Retours

Boolean

true si une propriété portant le nom spécifié a été trouvée ; sinon, false.

S’applique à