BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs) BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs) BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs) BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs) Method

定義

RunWorkerCompleted イベントを発生させます。Raises the RunWorkerCompleted event.

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

パラメーター

e
RunWorkerCompletedEventArgs RunWorkerCompletedEventArgs RunWorkerCompletedEventArgs RunWorkerCompletedEventArgs

イベント データを格納している EventArgsAn EventArgs that contains the event data.

注釈

イベントを発生させると、イベント ハンドラーがデリゲートから呼び出されます。Raising an event invokes the event handler through a delegate. 詳細については、次を参照してください。処理とイベントの発生します。For more information, see Handling and Raising Events.

OnRunWorkerCompleted メソッドを使用すると、デリゲートを結び付けずに、派生クラスでイベントを処理することもできます。The OnRunWorkerCompleted 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.

注意 (継承者)

派生クラスで OnRunWorkerCompleted(RunWorkerCompletedEventArgs) をオーバーライドする場合は、登録されているデリゲートがイベントを受け取ることができるように、基本クラスの OnRunWorkerCompleted(RunWorkerCompletedEventArgs) メソッドを呼び出してください。When overriding OnRunWorkerCompleted(RunWorkerCompletedEventArgs) in a derived class, be sure to call the base class's OnRunWorkerCompleted(RunWorkerCompletedEventArgs) method so that registered delegates receive the event.

適用対象

こちらもご覧ください