StartupNextInstanceEventArgs.CommandLine Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the command-line arguments of the subsequent application instance.

Namespace:   Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public ReadOnlyCollection<string> CommandLine { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<String>

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

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.

.NET Framework
Available since 2.0
Return to top
Show: