JsonObject.TryGetPropertyValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TryGetPropertyValue(String, JsonNode, Int32)
- Source:
- JsonObject.cs
- Source:
- 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
参数
- propertyName
- String
- jsonNode
- JsonNode
- index
- Int32
返回
适用于
TryGetPropertyValue(String, JsonNode)
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
- Source:
- JsonObject.cs
返回具有指定名称的属性的值。
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。