asp.net.ph

FillErrorEventArgs.Errors Property

System.Data Namespace   FillErrorEventArgs Class


Returns the errors being handled.

Syntax


Script [ Exception variable = ] FillErrorEventArgs.Errors

Property Value


variable The errors being handled.

The property is read only with no default value.

Example

The following example demonstrates how to catch and handle a FillError event. The examples assumes that you have created a SqlDataAdapter and a DataSet.

protected static void OnFillError ( object sender, FillErrorEventArgs args ) {
   if ( args.Errors.GetType ( ) == typeof ( System.OverflowException ) ) {

      // code to handle Precision Loss

      args.Continue = true;
   }
}
  C# VB

See Also

FillErrorEventArgs Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph