StartupNextInstanceEventArgs コンストラクター

定義

StartupNextInstanceEventArgs クラスの新しいインスタンスを初期化します。

public:
 StartupNextInstanceEventArgs(System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ args, bool bringToForegroundFlag);
public StartupNextInstanceEventArgs (System.Collections.ObjectModel.ReadOnlyCollection<string> args, bool bringToForegroundFlag);
new Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs : System.Collections.ObjectModel.ReadOnlyCollection<string> * bool -> Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs
Public Sub New (args As ReadOnlyCollection(Of String), bringToForegroundFlag As Boolean)

パラメーター

args
ReadOnlyCollection<String>

後続のアプリケーション インスタンスのコマンド ライン引数を格納する ReadOnlyCollection<T> オブジェクト。

bringToForegroundFlag
Boolean

例外ハンドラーの終了時に 1 つ目のアプリケーション インスタンスを前面に移動するかどうかを示す Boolean

注釈

イベントは StartupNextInstance 、Visual Basic アプリケーション モデルを使用して、単一インスタンス アプリケーションの後続のインスタンスが開始されるときに発生します。 詳細については、「 Visual Basic アプリケーション モデルの概要」を参照してください。

StartupNextInstanceEventArgs には、後続のアプリケーション インスタンスのコマンドライン引数が含まれており、例外ハンドラーの終了時に最初のアプリケーション インスタンスをフォアグラウンドに移動するかどうかを示します。

適用対象

こちらもご覧ください