IVsShell.AdviseBroadcastMessages Method

Enables clients to receive messages that are typically broadcast only to the main application window.

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

Syntax

声明
Function AdviseBroadcastMessages ( _
    pSink As IVsBroadcastMessageEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
用法
Dim instance As IVsShell
Dim pSink As IVsBroadcastMessageEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseBroadcastMessages(pSink, _
    pdwCookie)
int AdviseBroadcastMessages(
    IVsBroadcastMessageEvents pSink,
    out uint pdwCookie
)
int AdviseBroadcastMessages(
    [InAttribute] IVsBroadcastMessageEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseBroadcastMessages : 
        pSink:IVsBroadcastMessageEvents * 
        pdwCookie:uint32 byref -> int 
function AdviseBroadcastMessages(
    pSink : IVsBroadcastMessageEvents, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%
    [out] Pointer to an abstract handle required to unadvise the client of broadcast messages in the environment.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsShell::AdviseBroadcastMessages(
   [in] IVsBroadcastMessageEvents *pSink,
   [out] VSCOOKIE *pdwCookie
);

This method allows clients to receive specific messages typically broadcast only to the main environment window. These messages include system messages, such as color palette and font changes.

.NET Framework Security

See Also

Reference

IVsShell Interface

IVsShell Members

Microsoft.VisualStudio.Shell.Interop Namespace