Condividi tramite


JsonObject.TryGetPropertyValue Metodo

Definizione

Overload

TryGetPropertyValue(String, JsonNode, Int32)
TryGetPropertyValue(String, JsonNode)

Restituisce il valore di una proprietà con il nome specificato.

TryGetPropertyValue(String, JsonNode, Int32)

Origine:
JsonObject.cs
Origine:
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

Parametri

propertyName
String
jsonNode
JsonNode
index
Int32

Restituisce

Si applica a

TryGetPropertyValue(String, JsonNode)

Origine:
JsonObject.cs
Origine:
JsonObject.cs
Origine:
JsonObject.cs
Origine:
JsonObject.cs
Origine:
JsonObject.cs
Origine:
JsonObject.cs

Restituisce il valore di una proprietà con il nome specificato.

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

Parametri

propertyName
String

Nome della proprietà da restituire.

jsonNode
JsonNode

Valore JSON della proprietà con il nome specificato.

Restituisce

true se è stata trovata una proprietà con il nome specificato; in caso contrario, false.

Si applica a