Partager via


Process4.CommandLine, propriété

Obtient la ligne de commande qui a lancé le programme en cours de débogage dans Visual Studio.Cette propriété est en lecture seule.

Espace de noms :  EnvDTE90a
Assembly :  EnvDTE90a (dans EnvDTE90a.dll)

Syntaxe

'Déclaration
ReadOnly Property CommandLine As String
string CommandLine { get; }
property String^ CommandLine {
    String^ get ();
}
abstract CommandLine : string
function get CommandLine () : String

Valeur de propriété

Type : System.String
Chaîne qui contient la ligne de commande.

Notes

La partie .exe de la ligne de commande est entre guillemets.Par exemple, si vous lancez notepad.exe à partir de la ligne de commande c:\windows\system32\notepad.exe, cette propriété obtient le chaîne "c:\windows\system32\notepad.exe".Les arguments de ligne de commande apparaissent à l'extérieur des guillemets.Par exemple, "c:\myapp\myapp.exe" myfile.txt.

Sécurité .NET Framework

Voir aussi

Référence

Process4 Interface

EnvDTE90a, espace de noms