URL Property
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

URL Property

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Property URL() As String
[Visual Basic 6]
Property Get URL() As String
Property Let URL( _
   ByVal NewValue As String _
HRESULT __stdcall get_URL(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_URL(
   /* [in] */ BSTR NewValue
public string URL {get; set;}
[JScript .NET]
public function get URL() : String
public function set URL(
   NewValue : String


The following sample code modifies the URL property in the development environment:

' 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

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCWebServiceProxyGeneratorTool Object

© 2016 Microsoft