IVsContainedLanguageHost::Advise Method (IVsContainedLanguageHostEvents^, UInt32)

 

Enables a client to receive messages from the source text.

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

int Advise(
	IVsContainedLanguageHostEvents^ pHost,
	[OutAttribute] unsigned int% pvsCookie
)

Parameters

pHost
Type: Microsoft.VisualStudio.TextManager.Interop::IVsContainedLanguageHostEvents^

[in] An IVsContainedLanguageHostEvents object representing the entity that is requesting notification of contained language events generated by the editor.

pvsCookie
Type: System::UInt32

[out] Returns a unique identifier representing the client. This value can later be used in a call to the Unadvise method.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT Advise(
   [in]  IVsContainedLanguageHostEvents* pHost,
   [out] VSCOOKIE*                       pvsCookie
);
Return to top
Show: