WindowsFormsApplicationBase.OnInitialize メソッド

定義

メイン アプリケーション スレッドのビジュアル スタイル、テキスト表示スタイル、および現在のプリンシパル (アプリケーションが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 認証を使用している場合)、ShowSplashScreen/nosplashもコマンド ライン引数として使用しない場合は-nosplashを呼び出します。

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

適用対象

こちらもご覧ください