Aracılığıyla paylaş


JsonObject.TryGetPropertyValue Yöntem

Tanım

Aşırı Yüklemeler

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

Belirtilen ada sahip bir özelliğin değerini döndürür.

TryGetPropertyValue(String, JsonNode, Int32)

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

Parametreler

propertyName
String
jsonNode
JsonNode
index
Int32

Döndürülenler

Şunlara uygulanır

TryGetPropertyValue(String, JsonNode)

Kaynak:
JsonObject.cs
Kaynak:
JsonObject.cs
Kaynak:
JsonObject.cs
Kaynak:
JsonObject.cs
Kaynak:
JsonObject.cs
Kaynak:
JsonObject.cs

Belirtilen ada sahip bir özelliğin değerini döndürür.

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

Parametreler

propertyName
String

Döndürülecek özelliğin adı.

jsonNode
JsonNode

Belirtilen ada sahip özelliğin JSON değeri.

Döndürülenler

true belirtilen ada sahip bir özellik bulunduysa; aksi takdirde , false.

Şunlara uygulanır