Json.NET - Quick Starts & API Documentation
OnError Property
Namespaces ► Newtonsoft.Json.Serialization ► JsonContract ► OnError
Gets or sets the method called when an error is thrown during the serialization of the object.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public MethodInfo OnError { get; set; }
Public Property OnError As MethodInfo Get Set
public: property MethodInfo^ OnError { MethodInfo^ get (); void set (MethodInfo^ value); }
Value
The method called when an error is thrown during the serialization of the object.