JsonObject.TryGetPropertyValue(String, JsonNode) メソッド

定義

指定した名前のプロパティの値を返します。

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

パラメーター

propertyName
String

返すプロパティの名前。

jsonNode
JsonNode

指定した名前の プロパティの JSON 値。

戻り値

true 指定した名前のプロパティが見つかった場合は 。それ以外の場合は false

適用対象