Share via


Process4.CommandLine Property

Gets the command line that started the program being debugged in Visual Studio. This is a read-only property.

Namespace:  EnvDTE90a
Assembly:  EnvDTE90a (in EnvDTE90a.dll)

Syntax

'Declaration
ReadOnly Property CommandLine As String
string CommandLine { get; }
property String^ CommandLine {
    String^ get ();
}
abstract CommandLine : string with get
function get CommandLine () : String

Property Value

Type: System.String
A string that contains the command line.

Remarks

The .exe portion of the command line is enclosed in quotation marks. For example, if you start notepad.exe from the command line c:\windows\system32\notepad.exe, this property gets the string "c:\windows\system32\notepad.exe". Command-line arguments appear outside the quotation marks. For example, "c:\myapp\myapp.exe" myfile.txt.

.NET Framework Security

See Also

Reference

Process4 Interface

EnvDTE90a Namespace