Click or drag to resize
JsonValueExtensionsAsObject Method
Casts (CType) value to JsonObject.

Namespace: Dextronet.Jsonie.Extensions
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public static JsonObject AsObject(
	this JsonValue value
)

Parameters

value
Type: Dextronet.JsonieJsonValue
Value which will be casted.

Return Value

Type: JsonObject
Casted value.

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).
Exceptions
ExceptionCondition
InvalidCastExceptionIf value is not type of JsonObject.
See Also