Udostępnij za pośrednictwem


Właściwość VCProjectConfigurationProperties.CommandArguments —

Argumenty przekazywane do procesu, określone w Command po Attach jest false.

Przestrzeń nazw:  Microsoft.VisualStudio.VCProject
Zestaw:  Microsoft.VisualStudio.VCProject (w Microsoft.VisualStudio.VCProject.dll)

Składnia

'Deklaracja
Property CommandArguments As String
string CommandArguments { get; set; }
property String^ CommandArguments {
    String^ get ();
    void set (String^ value);
}
abstract CommandArguments : string with get, set
function get CommandArguments () : String
function set CommandArguments (value : String)

Wartość właściwości

Typ: System.String
Argumenty wiersza polecenia przekazywane do aplikacji.

Uwagi

Zobacz Jak: kompilowania przykładowy kod do projektu modelu rozszerzalności informacji na temat skompilować i uruchomić tej próbki.

Przykłady

[Programu Visual Basic]

Poniższy przykładowy kod modyfikuje CommandArguments właściwość w środowisku programowania:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim mystring As String
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.DebugSettings
        tool.CommandArguments = "test testing"
    End Sub
End Module

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VCProjectConfigurationProperties Interfejs

Przestrzeń nazw Microsoft.VisualStudio.VCProject