Represents the method that handles validation error events of the System.NewXml.XmlTextReaderClass.
[Visual Basic] Public Delegate Sub ValidationDelegate( _ ByVal hr As Integer, _ ByVal reason As String _ ) [C#] public delegate void ValidationDelegate( int hr, string reason ); [C++] public __gc __delegate void ValidationDelegate( int hr, String* reason );
[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.
The declaration of your event-handling method must have the same parameters as the ValidationDelegate delegate declaration.
[To be supplied.]
Namespace: System.NewXml
Assembly: System.Xml.dll
The following is a simple example of a validation callback method:
[C++] private void ValidationCallback(int hr, String msg) { Console.WriteLine(""); Console.WriteLine("hr: " + hr); Console.WriteLine(msg); }