JsonValue.ReadAs<T> Method (T)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Reads the JsonValue as an object with specified fallback.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Function ReadAs(Of T) ( _
    fallback As T _
) As T
public T ReadAs<T>(
    T fallback
)
public:
generic<typename T>
T ReadAs(
    T fallback
)
member ReadAs : 
        fallback:'T -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The generic type.

Parameters

  • fallback
    Type: T
    The fallback.

Return Value

Type: T
The read value as an object.

.NET Framework Security

See Also

Reference

JsonValue Class

ReadAs Overload

System.Json Namespace