共用方式為


Process4.CommandLine Property

Definition

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

public:
 property System::String ^ CommandLine { System::String ^ get(); };
public:
 property Platform::String ^ CommandLine { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(2102)]
public string CommandLine { [System.Runtime.InteropServices.DispId(2102)] get; }
[<System.Runtime.InteropServices.DispId(2102)>]
[<get: System.Runtime.InteropServices.DispId(2102)>]
member this.CommandLine : string
Public ReadOnly Property CommandLine As String

Property Value

A string that contains the command line.

Attributes

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.

Applies to