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

声明
Function AddWebReference ( _
    URL As String, _
    Name As String _
) As Object
用法
Dim instance As VCProject
Dim URL As String
Dim Name As String
Dim returnValue As Object

returnValue = instance.AddWebReference(URL, _
    Name)
Object AddWebReference(
    string URL,
    string Name
)
Object^ AddWebReference(
    [InAttribute] String^ URL, 
    [InAttribute] String^ Name
)
function AddWebReference(
    URL : String, 
    Name : String
) : Object

Parameters

Return Value

Type: System.Object

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

Permissions

See Also

Reference

VCProject Interface

VCProject Members

Microsoft.VisualStudio.VCProjectEngine Namespace