Language

WindowsFormsApplicationBase.OnStartup(StartupEventArgs) メソッド

定義

派生クラスでオーバーライドされると、アプリケーションの起動時にコードを実行できます。

protected:
 virtual bool OnStartup(Microsoft::VisualBasic::ApplicationServices::StartupEventArgs ^ eventArgs);
protected virtual bool OnStartup(Microsoft.VisualBasic.ApplicationServices.StartupEventArgs eventArgs);
abstract member OnStartup : Microsoft.VisualBasic.ApplicationServices.StartupEventArgs -> bool
override this.OnStartup : Microsoft.VisualBasic.ApplicationServices.StartupEventArgs -> bool
Protected Overridable Function OnStartup (eventArgs As StartupEventArgs) As Boolean

パラメーター

eventArgs
StartupEventArgs

アプリケーションのコマンド ライン引数。アプリケーションの起動を取り消す必要があるかどうかを示します。

返品

アプリケーションの起動を続行する必要があるかどうかを示す Boolean 。

注釈

既定では、このメソッドは Startup イベントを発生させます。 イベント ハンドラーは、イベント引数の Cancel プロパティを設定できます。 CancelがTrue場合、このメソッドはアプリケーションの起動を取り消すFalseを返します。 それ以外の場合、このメソッドは Trueを返します。

適用対象

こちらもご覧ください