JsonObject.TryGetValue(String, JsonValue) 方法

定義

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Json::JsonValue ^ % value);
public bool TryGetValue (string key, out System.Json.JsonValue value);
abstract member TryGetValue : string * JsonValue -> bool
override this.TryGetValue : string * JsonValue -> bool
Public Function TryGetValue (key As String, ByRef value As JsonValue) As Boolean

參數

key
String
value
JsonValue

傳回

備註

注意

命名空間 System.Json 是針對不再支援的 Silverlight 所設計。 若要處理 JSON,建議您改用 命名空間中的 System.Text.Json API。

適用於