JsonObject.ValueOrDefault Method (String)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies the value or the default value of the Json object with specified key.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overrides Function ValueOrDefault ( _
key As String _
) As JsonValue
public override JsonValue ValueOrDefault(
string key
)
public:
virtual JsonValue^ ValueOrDefault(
String^ key
) override
abstract ValueOrDefault :
key:string -> JsonValue
override ValueOrDefault :
key:string -> JsonValue
public override function ValueOrDefault(
key : String
) : JsonValue
Parameters
- key
Type: System.String
The key used
Return Value
Type: System.Json.JsonValue
The value or the default value of the Json object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.