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.StringThe URL of the service to be added.
bstrNamespace
Type: System.StringThe namespace used to generate the code for the service.
Remarks
Multiple services can be added if referencing a .disco file.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.