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

Return Value

Type: System.Json.JsonValue
The value or the default value of the Json object.

.NET Framework Security

See Also

Reference

JsonObject Class

ValueOrDefault Overload

System.Json Namespace