System.Xml.Schema.XmlSchemaSet.ValidationEventHandler Event

Specifies an event handler for receiving information about XML Schema definition language (XSD) schema validation errors.

Syntax

public event ValidationEventHandler ValidationEventHandler

Remarks

Sets an event handler for receiving information about schema validation errors when the erload:System.Xml.Schema.XmlSchemaSet.Add or XmlSchemaSet.Compile methods of the System.Xml.Schema.XmlSchemaSet are called.

If an event handler is not defined, an System.Xml.Schema.XmlSchemaException is thrown on any validation errors where the System.Xml.Schema.XmlSeverityType is XmlSeverityType.Error. Exceptions are not thrown for validation errors with an System.Xml.Schema.XmlSeverityType of XmlSeverityType.Warning.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0