ObjectDataSourceView.OnObjectCreating(ObjectDataSourceEventArgs) Method
Definition
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.
Raises the ObjectCreating event before the ObjectDataSourceView object creates an instance of a business object to perform a data operation.
protected:
virtual void OnObjectCreating(System::Web::UI::WebControls::ObjectDataSourceEventArgs ^ e);
protected virtual void OnObjectCreating (System.Web.UI.WebControls.ObjectDataSourceEventArgs e);
abstract member OnObjectCreating : System.Web.UI.WebControls.ObjectDataSourceEventArgs -> unit
override this.OnObjectCreating : System.Web.UI.WebControls.ObjectDataSourceEventArgs -> unit
Protected Overridable Sub OnObjectCreating (e As ObjectDataSourceEventArgs)
Parameters
An ObjectDataSourceEventArgs that contains the event data.
Remarks
Raising an event invokes the event handler through a delegate. For more information about how to handle events, see Handling and Raising Events.
The OnObjectCreating method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors
When overriding the OnObjectCreating(ObjectDataSourceEventArgs) method in a derived class, be sure to call the OnObjectCreating(ObjectDataSourceEventArgs) method for the base class so that registered delegates receive the event.