Gets or sets the method called when an error is thrown during the serialization of the object.
| 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); }
The method called when an error is thrown during the serialization of the object.