Click or drag to resize
Json.NET

JsonException Constructor (SerializationInfo, StreamingContext)

 
Initializes a new instance of the JsonException class.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public JsonException(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.SerializationSerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
context
Type: System.Runtime.SerializationStreamingContext
The StreamingContext that contains contextual information about the source or destination.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe info parameter is null.
SerializationExceptionThe class name is null or HResult is zero (0).
See Also