Export (0) Print
Expand All
Expand Minimize

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 _
) 
[C++]
HRESULT __stdcall get_URL(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_URL(
   /* [in] */ BSTR NewValue
);
[C#]
public string URL {get; set;}
[JScript .NET]
public function get URL() : String
public function set URL(
   NewValue : String
)

Example

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")
        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

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

See Also

Applies To: VCWebServiceProxyGeneratorTool Object

Show:
© 2014 Microsoft