IVsWebServiceProvider.GetWebService(String, IVsWebService) 方法

定义

检索 Web 服务的接口。

public:
 int GetWebService(System::String ^ pszUrl, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWebService ^ % ppIVsWebService);
public:
 int GetWebService(Platform::String ^ pszUrl, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWebService ^ &  ppIVsWebService);
int GetWebService(std::wstring const & pszUrl, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWebService const & & ppIVsWebService);
public int GetWebService (string pszUrl, out Microsoft.VisualStudio.Shell.Interop.IVsWebService ppIVsWebService);
abstract member GetWebService : string * IVsWebService -> int
Public Function GetWebService (pszUrl As String, ByRef ppIVsWebService As IVsWebService) As Integer

参数

pszUrl
String

中指向字符串的指针,该字符串包含 Web 服务的 URL。

ppIVsWebService
IVsWebService

弄指向 IVsWebService 定义 Web 服务的接口的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于