JsonValue.ValueOrDefault Method (Int32)
[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 index.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overridable Function ValueOrDefault ( _
index As Integer _
) As JsonValue
public virtual JsonValue ValueOrDefault(
int index
)
public:
virtual JsonValue^ ValueOrDefault(
int index
)
abstract ValueOrDefault :
index:int -> JsonValue
override ValueOrDefault :
index:int -> JsonValue
public function ValueOrDefault(
index : int
) : JsonValue
Parameters
- index
Type: System.Int32
The index.
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.