Condividi tramite


Proprietà VCProjectConfigurationProperties.CommandArguments

Argomenti da passare al processo specificati in Command quando Attach è false.

Spazio dei nomi:  Microsoft.VisualStudio.VCProject
Assembly:  Microsoft.VisualStudio.VCProject (in Microsoft.VisualStudio.VCProject.dll)

Sintassi

'Dichiarazione
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)

Valore proprietà

Tipo: String
Argomenti della riga di comando da passare all'applicazione.

Note

Per informazioni sulla compilazione e l'esecuzione dell'esempio, vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto.

Esempi

[Visual Basic]

Il seguente codice di esempio riportato di seguito la proprietà di CommandArguments nell'ambiente di sviluppo:

' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCProjectConfigurationProperties Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProject