Uredi

Deli z drugimi prek


BindingSource.OnDataError(BindingManagerDataErrorEventArgs) Method

Definition

Raises the DataError event.

protected:
 virtual void OnDataError(System::Windows::Forms::BindingManagerDataErrorEventArgs ^ e);
protected virtual void OnDataError (System.Windows.Forms.BindingManagerDataErrorEventArgs e);
abstract member OnDataError : System.Windows.Forms.BindingManagerDataErrorEventArgs -> unit
override this.OnDataError : System.Windows.Forms.BindingManagerDataErrorEventArgs -> unit
Protected Overridable Sub OnDataError (e As BindingManagerDataErrorEventArgs)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnDataError 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 OnDataError(BindingManagerDataErrorEventArgs) in a derived class, be sure to call the base class's OnDataError(BindingManagerDataErrorEventArgs) method so that registered delegates receive the event.

Applies to