This documentation is archived and is not being maintained.

WebReference Property

Visual Studio .NET 2003

Returns the URL of the web reference.

[Visual Basic.NET]
Public ReadOnly Property WebReference() As String
[Visual Basic 6]
Property Get WebReference() As String
HRESULT __stdcall get_WebReference(
   /* [out, retval] */ BSTR* retVal
public string WebReference {get;}
public function get WebReference() : String

Return Value

A string representing the URL to the web reference.


Returns a blank string if no web reference exists.


The following sample code uses WebReference in the development environment:

' Add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim idx As Integer
        Dim filter As VCFilter
        Dim col As IVCCollection
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Filters
        For idx = 1 To col.Count
            filter = col.Item(idx)
            MsgBox("Web reference: " & filter.WebReference)
    End Sub
End Module

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

See Also

Applies To: VCFilter Object