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
URL
Type: System.StringRequired. URL of the web reference.
Name
Type: System.StringLogical name of the reference.
Return Value
Type: System.Object
Returns a ProjectItem object that is the new Web Reference folder.
Permissions
- 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.