Freigeben über


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

Return Value

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

.NET Framework Security

See Also

Reference

VCProject Interface

Microsoft.VisualStudio.VCProjectEngine Namespace