JsonValue.TryReadAs<T> Method (T%)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Indicates whether the JsonValue tries to read as a generic type.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Function TryReadAs(Of T) ( _
<OutAttribute> ByRef valueOfT As T _
) As Boolean
public bool TryReadAs<T>(
out T valueOfT
)
public:
generic<typename T>
bool TryReadAs(
[OutAttribute] T% valueOfT
)
member TryReadAs :
valueOfT:'T byref -> bool
JScript does not support generic types or methods.
Type Parameters
- T
The generic type.
Parameters
- valueOfT
Type: T%
The value of the generic type.
Return Value
Type: System.Boolean
True if the JsonValue tries to read as a generic type; otherwise, false.
.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.