Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ValidationEventHandler Delegate

Definition

Namespace:
System.Xml.Schema
Assemblies:
netstandard.dll, System.Xml.ReaderWriter.dll
Assembly:
System.Xml.ReaderWriter.dll
Assembly:
System.Xml.dll
Assembly:
netstandard.dll
Source:
ValidationEventHandler.cs
Source:
ValidationEventHandler.cs
Source:
XmlSchemaSimpleTypeUnion.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public delegate void ValidationEventHandler(System::Object ^ sender, ValidationEventArgs ^ e);
public delegate void ValidationEventHandler(object? sender, ValidationEventArgs e);
public delegate void ValidationEventHandler(object sender, ValidationEventArgs e);
type ValidationEventHandler = delegate of obj * ValidationEventArgs -> unit
Public Delegate Sub ValidationEventHandler(sender As Object, e As ValidationEventArgs)

Parameters

sender
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.

e
ValidationEventArgs

The event data.

Extension Methods

Name Description
GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to


Feedback

Was this page helpful?