Udostępnij za pośrednictwem


IVsWebService.AdviseWebServiceEvents(IVsWebServiceEvents, UInt32) Method

Definition

Register callbacks for the Web service.

public:
 int AdviseWebServiceEvents(Microsoft::VisualStudio::Shell::Interop::IVsWebServiceEvents ^ pEvents, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseWebServiceEvents(Microsoft::VisualStudio::Shell::Interop::IVsWebServiceEvents const & pEvents, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseWebServiceEvents (Microsoft.VisualStudio.Shell.Interop.IVsWebServiceEvents pEvents, out uint pdwCookie);
abstract member AdviseWebServiceEvents : Microsoft.VisualStudio.Shell.Interop.IVsWebServiceEvents * uint32 -> int
Public Function AdviseWebServiceEvents (pEvents As IVsWebServiceEvents, ByRef pdwCookie As UInteger) As Integer

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