Udostępnij za pośrednictwem


GraphSerializer.ErrorHandler Event

Add this error handler to catch all deserialization exceptions and continue. If there is no error handler registered then the serializer will throw the exception and stop.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Event ErrorHandler As EventHandler(Of GraphSerializationErrorEventArgs)
public event EventHandler<GraphSerializationErrorEventArgs> ErrorHandler
public:
 event EventHandler<GraphSerializationErrorEventArgs^>^ ErrorHandler {
    void add (EventHandler<GraphSerializationErrorEventArgs^>^ value);
    void remove (EventHandler<GraphSerializationErrorEventArgs^>^ value);
}
member ErrorHandler : IEvent<EventHandler<GraphSerializationErrorEventArgs>,
    GraphSerializationErrorEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

GraphSerializer Class

Microsoft.VisualStudio.GraphModel Namespace