Επεξεργασία

Κοινή χρήση μέσω


PictureBox.OnLoadCompleted(AsyncCompletedEventArgs) Method

Definition

Raises the LoadCompleted event.

protected:
 virtual void OnLoadCompleted(System::ComponentModel::AsyncCompletedEventArgs ^ e);
protected virtual void OnLoadCompleted (System.ComponentModel.AsyncCompletedEventArgs e);
abstract member OnLoadCompleted : System.ComponentModel.AsyncCompletedEventArgs -> unit
override this.OnLoadCompleted : System.ComponentModel.AsyncCompletedEventArgs -> unit
Protected Overridable Sub OnLoadCompleted (e As AsyncCompletedEventArgs)

Parameters

e
AsyncCompletedEventArgs

An AsyncCompletedEventArgs that contains the event data.

Remarks

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

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

Applies to