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
'Declaração
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
- 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.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT Advise(
[in] IVsContainedLanguageHostEvents* pHost,
[out] VSCOOKIE* pvsCookie
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.