JsonValue.TryReadAs Method (Type, Object%)
[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 type.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overridable Function TryReadAs ( _
type As Type, _
<OutAttribute> ByRef value As Object _
) As Boolean
public virtual bool TryReadAs(
Type type,
out Object value
)
public:
virtual bool TryReadAs(
Type^ type,
[OutAttribute] Object^% value
)
abstract TryReadAs :
type:Type *
value:Object byref -> bool
override TryReadAs :
type:Type *
value:Object byref -> bool
public function TryReadAs(
type : Type,
value : Object
) : boolean
Parameters
- type
Type: System.Type
the type.
- value
Type: System.Object%
the Json value.
Return Value
Type: System.Boolean
True if the JsonValue tries to read as 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.