VsTextImageClass.AdviseTextImageEvents(IVsTextImageEvents, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers the environment to receive notification of text image changes.
public:
virtual int AdviseTextImageEvents(Microsoft::VisualStudio::TextManager::Interop::IVsTextImageEvents ^ pSink, [Runtime::InteropServices::Out] System::UInt32 % pCookie) = Microsoft::VisualStudio::TextManager::Interop::IVsTextImage::AdviseTextImageEvents;
public:
virtual int AdviseTextImageEvents(Microsoft::VisualStudio::TextManager::Interop::IVsTextImageEvents ^ pSink, [Runtime::InteropServices::Out] System::UInt32 % pCookie);
virtual int AdviseTextImageEvents(Microsoft::VisualStudio::TextManager::Interop::IVsTextImageEvents const & pSink, [Runtime::InteropServices::Out] unsigned int & pCookie);
public virtual int AdviseTextImageEvents (Microsoft.VisualStudio.TextManager.Interop.IVsTextImageEvents pSink, out uint pCookie);
abstract member AdviseTextImageEvents : Microsoft.VisualStudio.TextManager.Interop.IVsTextImageEvents * uint32 -> int
override this.AdviseTextImageEvents : Microsoft.VisualStudio.TextManager.Interop.IVsTextImageEvents * uint32 -> int
Public Overridable Function AdviseTextImageEvents (pSink As IVsTextImageEvents, ByRef pCookie As UInteger) As Integer
Parameters
- pSink
- IVsTextImageEvents
[in] The IVsTextImageEvents interface on the object requesting notification of text image events.
- pCookie
- UInt32
[out] Pointer to an abstract handle for the referenced event sink. This value is required to unadvised the event sink using UnadviseTextImageEvents(UInt32).
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.