Share via


VCWebServiceProxyGeneratorTool.Output, propriété

Obtient ou définit le nom du fichier de sortie.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
Property Output As String
string Output { get; set; }
property String^ Output {
    String^ get ();
    void set (String^ value);
}
abstract Output : string with get, set
function get Output () : String 
function set Output (value : String)

Valeur de propriété

Type : String
Nom du fichier de sortie.

Exemples

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour savoir comment compiler et exécuter cet exemple.

L'exemple suivant modifie la propriété d'Output de l'objet d'VCWebServiceProxyGeneratorTool dans l'environnement de développement intégré (IDE) :

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCWebServiceProxyGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCWebServiceProxyGeneratorTool")
        tool.Output = "$(TargetDir)\test"
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCWebServiceProxyGeneratorTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms