IVsWebService.AdviseWebServiceEvents(IVsWebServiceEvents, UInt32) Method

Definition

Register callbacks for the Web service.

C++/WinRT
int AdviseWebServiceEvents(Microsoft::VisualStudio::Shell::Interop::IVsWebServiceEvents const & pEvents, [Runtime::InteropServices::Out] unsigned int & pdwCookie);

Parameters

pEvents
IVsWebServiceEvents

[in] Pointer to an IVsWebServiceEvents interface implementing the callback functions.

pdwCookie
UInt32

[out] Pointer to an integer, a VSCOOKIE value uniquely identifying the registered interface. Used in the call to UnadviseWebServiceEvents(UInt32).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022