VCProject.AddWebReference(String, String) 方法

定义

向项目添加对 Web 服务的引用。

public:
 System::Object ^ AddWebReference(System::String ^ URL, System::String ^ Name);
public:
 Platform::Object ^ AddWebReference(Platform::String ^ URL, Platform::String ^ Name);
winrt::Windows::Foundation::IInspectable AddWebReference(std::wstring const & URL, std::wstring const & Name);
[System.Runtime.InteropServices.DispId(826)]
public object AddWebReference (string URL, string Name);
[<System.Runtime.InteropServices.DispId(826)>]
abstract member AddWebReference : string * string -> obj
Public Function AddWebReference (URL As String, Name As String) As Object

参数

URL
String

必需。 此 web 引用的 URL。

Name
String

此引用的逻辑名称。

返回

Object

返回一个 ProjectItem 对象,该对象为新的 Web 引用文件夹。

属性

适用于