VCProject.AddWebReference(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向项目添加对 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
此引用的逻辑名称。
返回
返回一个 ProjectItem 对象,该对象为新的 Web 引用文件夹。
- 属性