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。

适用于