Click or drag to resize
Json.NET

JsonWriterException Constructor (SerializationInfo, StreamingContext)

 
Initializes a new instance of the JsonWriterException class.

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

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
context
Type: System.Runtime.Serialization.StreamingContext
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