ValidationEventHandler Delegate


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Represents the callback method that will handle XML schema validation events and the ValidationEventArgs.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public delegate void ValidationEventHandler(
	object sender,
	ValidationEventArgs e


Type: System.Object

The source of the event.

Note    Determine the type of a sender before using it in your code. You cannot assume that the sender is an instance of a particular type. The sender is also not guaranteed to not be null. Always surround your casts with failure handling logic.

Type: System.Xml.Schema.ValidationEventArgs

The event data.

.NET Framework
Available since 1.1
Return to top