Partager via


IVsContainedLanguageHost.Advise Method

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)

Syntax

'Déclaration
Function Advise ( _
    pHost As IVsContainedLanguageHostEvents, _
    <OutAttribute> ByRef pvsCookie As UInteger _
) As Integer
int Advise(
    IVsContainedLanguageHostEvents pHost,
    out uint pvsCookie
)
int Advise(
    [InAttribute] IVsContainedLanguageHostEvents^ pHost, 
    [OutAttribute] unsigned int% pvsCookie
)
abstract Advise : 
        pHost:IVsContainedLanguageHostEvents * 
        pvsCookie:uint32 byref -> int 
function Advise(
    pHost : IVsContainedLanguageHostEvents, 
    pvsCookie : uint
) : int

Parameters

  • 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.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT Advise(
   [in]  IVsContainedLanguageHostEvents* pHost,
   [out] VSCOOKIE*                       pvsCookie
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace