Compartir a través de


WebReferences.Add Method

Adds a new WebReference object to the specified project, using the specified namespace.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
Sub Add ( _
    bstrUrl As String, _
    bstrNamespace As String _
)
void Add(
    string bstrUrl,
    string bstrNamespace
)
void Add(
    [InAttribute] String^ bstrUrl, 
    [InAttribute] String^ bstrNamespace
)
abstract Add : 
        bstrUrl:string * 
        bstrNamespace:string -> unit
function Add(
    bstrUrl : String, 
    bstrNamespace : String
)

Parameters

  • bstrUrl
    Type: System.String

    The URL of the service to be added.

  • bstrNamespace
    Type: System.String

    The namespace used to generate the code for the service.

Remarks

Multiple services can be added if referencing a .disco file.

.NET Framework Security

See Also

Reference

WebReferences Interface

VsWebSite Namespace