Share via


VCProject.AddWebReference Method

Adds a reference to a Web Service to the project.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Function AddWebReference ( _
    URL As String, _
    Name As String _
) As Object
Object AddWebReference(
    string URL,
    string Name
)
Object^ AddWebReference(
    [InAttribute] String^ URL, 
    [InAttribute] String^ Name
)
abstract AddWebReference : 
        URL:string * 
        Name:string -> Object
function AddWebReference(
    URL : String, 
    Name : String
) : Object

Parameters

  • URL
    Type: String

    Required. URL of the web reference.

  • Name
    Type: String

    Logical name of the reference.

Return Value

Type: Object
Returns a ProjectItem object that is the new Web Reference folder.

.NET Framework Security

See Also

Reference

VCProject Interface

Microsoft.VisualStudio.VCProjectEngine Namespace