StartupNextInstanceEventArgs Constructor

Definition

Initializes a new instance of the StartupNextInstanceEventArgs class.

C#
public StartupNextInstanceEventArgs(System.Collections.ObjectModel.ReadOnlyCollection<string> args, bool bringToForegroundFlag);

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

Tuote Versiot
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 5, 6, 7, 8, 9, 10

See also