This documentation is archived and is not being maintained.

VCWebServiceProxyGeneratorTool.URL Property 

Gets or sets the URL used when a user specifies the Update Web Reference command.

Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in microsoft.visualstudio.vcprojectengine.dll)

string URL { get; set; }
/** @property */
String get_URL ()

/** @property */
void set_URL (/** @attribute InAttribute() */ String urlPath)

function get URL () : String

function set URL (urlPath : String)

Property Value

The URL used when a user specifies the Update Web Reference command.

See Samples for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the URL property in the integrated development environment (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_
          ("http://localhost /webservice1/webservice1.vsdisco")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
    End Sub
End Module