JsonValueExtensions.ReadAsType Method (JsonValue, Type)

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

Reads the JsonValueExtensions as a type with specified value.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ReadAsType ( _
    jsonValue As JsonValue, _
    type As Type _
) As Object
public static Object ReadAsType(
    this JsonValue jsonValue,
    Type type
)
[ExtensionAttribute]
public:
static Object^ ReadAsType(
    JsonValue^ jsonValue, 
    Type^ type
)
static member ReadAsType : 
        jsonValue:JsonValue * 
        type:Type -> Object 
public static function ReadAsType(
    jsonValue : JsonValue, 
    type : Type
) : Object

Parameters

Return Value

Type: System.Object
The read JsonValueExtensions object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type JsonValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

JsonValueExtensions Class

ReadAsType Overload

System.Runtime.Serialization.Json Namespace