JsonObject.IDictionary<String,JsonNode>.TryGetValue メソッド

定義

指定したプロパティ名に関連付けられている値を取得します。

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue(System::String ^ propertyName, [Runtime::InteropServices::Out] System::Text::Json::Nodes::JsonNode ^ % jsonNode) = System::Collections::Generic::IDictionary<System::String ^, System::Text::Json::Nodes::JsonNode ^>::TryGetValue;
bool IDictionary<string,JsonNode>.TryGetValue(string propertyName, out System.Text.Json.Nodes.JsonNode jsonNode);
abstract member System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue : string * JsonNode -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Text.Json.Nodes.JsonNode>.TryGetValue : string * JsonNode -> bool
Function TryGetValue (propertyName As String, ByRef jsonNode As JsonNode) As Boolean Implements IDictionary(Of String, JsonNode).TryGetValue

パラメーター

propertyName
String

取得する値のプロパティ名。

jsonNode
JsonNode

このメソッドが戻るときに、プロパティ名が見つかった場合は、指定したプロパティ名に関連付けられている値を格納します。それ以外の場合は null

返品

指定したプロパティ名を持つ要素が に含まれている場合は a0/& 。それ以外の場合は。

例外

propertyNamenullです。

適用対象