System.Web 2.0.0.0 System.EventArgs

The class is used in the , , , and methods to provide access to output parameters, return values, and exceptions that are thrown by the method that is called by the control. These are accessed by the , , and properties, respectively. By adding a delegate to handle the , , , or events, you can examine this data and perform any additional post processing that is required.

The control exposes many events that you can handle to work with the underlying business object at various times in its lifecycle. The following table lists the events and the associated classes and event handler delegates.

Event

EventArgs

EventHandler

.

Occurs immediately before the instance of the business object is created.

.

Occurs immediately after the instance of the business object is created.

.

Occurs before the data is retrieved.

, , and .

Occur before an insert, update, or delete operation is performed.

.

Occurs after the data is retrieved.

, , and .

Occur after the insert, update, or delete operation is completed.

.

Occurs before a business object is destroyed.

Provides data for the , , , and events of the control.

- Constructor
  To be added.
  To be added.

  The parameter can be any object that is returned by a call to the business object data method. The parameter is an collection of name/value pairs that match those in the method signature and are passed by reference.

  Initializes a new instance of the class using the specified output parameters and return value.

  2.0.0.0
- Constructor
  To be added.
  To be added.
  To be added.

  The parameter can be any object that is returned by a call to the business object data method. The parameter is an collection of name/value pairs that match those in the method signature and are passed by reference. The parameter is an exception that wraps any exceptions that are thrown by the method that is called by the control during a data operation. If the exception is not handled by an , , , or method, it is thrown by the control after the data operation returns.

  Initializes a new instance of the class using the specified output parameters, return value, and exception.

  2.0.0.0
- Property
  2.0.0.0
  System.Int32 To be added.

  Use the value to verify that the expected number of rows was affected.

  Gets or sets the number of rows that are affected by the data operation.

- Property
  System.Exception To be added.

  The exception does not represent the actual exception that is thrown by the business object data method. You can use the property to access the thrown exception.

  Gets a wrapper for any exceptions that are thrown by the method that is called by the control during a data operation.

  2.0.0.0
- Property
  System.Boolean To be added.

  If the business object throws an exception, the property is set to false and the exception is wrapped by the property. If you use an object, you can check the property and handle the exception. If you handle the exception, set the property to true or the control will throw an exception.

  Gets or sets a value indicating whether an exception that was thrown by the business object has been handled.

  2.0.0.0
- Property
  System.Collections.IDictionary To be added.

  Any parameters that are passed to the business object method by reference are returned in the collection.

  Gets a collection that contains business object method parameters and their values.

  2.0.0.0
- Property
  System.Object To be added.

  The property is set in the constructor. The value is set to the return value of the business object method call, which is called using reflection. If the business method returns no value (such as when the business object method returns void), the property evaluated to null.

  Gets the return value that is returned by the business object method, if any, as an object.

  2.0.0.0