Edit

Share via


XmlSchemaCollection.ValidationEventHandler Event

Definition

Sets an event handler for receiving information about the XDR and XML schema validation errors.

public:
 event System::Xml::Schema::ValidationEventHandler ^ ValidationEventHandler;
public event System.Xml.Schema.ValidationEventHandler ValidationEventHandler;
member this.ValidationEventHandler : System.Xml.Schema.ValidationEventHandler 

Event Type

Remarks

These events occur when the schemas are added to the collection. If an event handler is not provided, an XmlSchemaException is thrown on any validation errors where the Severity is XmlSeverityType.Error. To specify an event handler, define a callback function and add it to the ValidationEventHandler.

Important

The XmlSchemaCollection class is obsolete in .NET Framework version 2.0 and has been replaced by the XmlSchemaSet class.

Applies to