Redigera

Dela via


StartupNextInstanceEventArgs Constructor

Definition

Initializes a new instance of the StartupNextInstanceEventArgs class.

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)

Parameters

args
ReadOnlyCollection<String>

A ReadOnlyCollection<T> object that contains the command-line arguments of the subsequent application instance.

bringToForegroundFlag
Boolean

A Boolean that indicates whether the first application instance should be brought to the foreground upon exiting the exception handler.

Remarks

The StartupNextInstance event occurs when a subsequent instance of a single-instance application starts, using the Visual Basic Application Model. For more information, see Overview of the Visual Basic Application Model.

StartupNextInstanceEventArgs contains the command-line arguments of the subsequent application instance and indicates whether the first application instance should be brought to the foreground upon exiting the exception handler.

Applies to

See also