Condividi tramite


Proprietà VCWebServiceProxyGeneratorTool.URL

ottiene o imposta l'URL utilizzato quando un utente specifica Riferimento Web di aggiornamento comando.

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

Sintassi

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

Valore proprietà

Tipo: System.String
L'URL utilizzato quando un utente specifica il comando aggiorna riferimento Web.

Esempi

vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Nell'esempio seguente viene modificato URL proprietà nell'ambiente di sviluppo (IDE) integrato (IDE):

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCFileConfiguration
        Dim file As VCFile
        Dim tool As VCWebServiceProxyGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.AddWebReference_
          ("https://localhost /webservice1/webservice1.vsdisco")
        MsgBox(file.Name)
        cfgs = file.FileConfigurations
        MsgBox(cfgs.Count)
        cfg = cfgs.Item(1)
        MsgBox(cfg.Name)
        tool = cfg.Tool
        MsgBox(tool.URL)
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCWebServiceProxyGeneratorTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine