asp.net.ph

FillErrorEventArgs.Continue Property

System.Data Namespace   FillErrorEventArgs Class


Sets or retrieves a value indicating whether to continue the fill operation despite the error.

Syntax


Script FillErrorEventArgs.Continue = [ true | false ]

Property Value

true if the fill operation should continue; otherwise, false.

The property is read/write with a default value of false.

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