WindowsFormsApplicationBase.OnInitialize メソッド

定義

メイン アプリケーション スレッドについて、visual スタイル、テキスト表示スタイル、および (アプリケーションに Windows 認証が使用されている場合) 現在のプリンシパルを設定し、スプラッシュ スクリーンが定義されている場合は、そのスプラッシュ スクリーンを初期化します。

protected:
 virtual bool OnInitialize(System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ commandLineArgs);
[System.STAThread]
protected virtual bool OnInitialize (System.Collections.ObjectModel.ReadOnlyCollection<string> commandLineArgs);
[<System.STAThread>]
abstract member OnInitialize : System.Collections.ObjectModel.ReadOnlyCollection<string> -> bool
override this.OnInitialize : System.Collections.ObjectModel.ReadOnlyCollection<string> -> bool
Protected Overridable Function OnInitialize (commandLineArgs As ReadOnlyCollection(Of String)) As Boolean

パラメーター

commandLineArgs
ReadOnlyCollection<String>

現在のアプリケーションのコマンド ライン引数が文字列として格納された読み取り専用コレクション。

戻り値

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

属性

注釈

既定では、このメソッドで、メイン アプリケーション スレッドの視覚スタイル、テキスト表示スタイル、および現在のプリンシパルが設定され (アプリケーションが Windows 認証を使用している場合)、コマンドライン引数として /nosplash-nosplash も使用されていない場合に、ShowSplashScreen が呼び出されます。

このメソッドは、次のメソッドを呼び出します。

適用対象

こちらもご覧ください