VsTextImageClass::AdviseTextImageEvents Method (IVsTextImageEvents^, UInt32)

 

Registers the environment to receive notification of text image changes.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int AdviseTextImageEvents(
	IVsTextImageEvents^ pSink,
	[OutAttribute] unsigned int% pCookie
)

Parameters

pSink
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextImageEvents^

[in] The IVsTextImageEvents interface on the object requesting notification of text image events.

pCookie
Type: System::UInt32

[out] Pointer to an abstract handle for the referenced event sink. This value is required to unadvised the event sink using UnadviseTextImageEvents.

Return Value

Type: System::Int32

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

Return to top
Show: