다음을 통해 공유


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

‘선언
Function Advise ( _
    pHost As IVsContainedLanguageHostEvents, _
    <OutAttribute> ByRef pvsCookie As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsContainedLanguageHost
Dim pHost As IVsContainedLanguageHostEvents
Dim pvsCookie As UInteger
Dim returnValue As Integer

returnValue = instance.Advise(pHost, pvsCookie)
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

IVsContainedLanguageHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace