StartupNextInstanceEventArgs Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.