다음을 통해 공유


JsonObject.TryGetPropertyValue 메서드

정의

오버로드

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

지정된 이름의 속성 값을 반환합니다.

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.

적용 대상