Compartir a través de


IVsUIHierWinClipboardHelper.AdviseClipboardHelperEvents Method

Establishes client notification of hierarchy clipboard helper events without the hierarchy implementing IConnectionPointContainer.

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

Syntax

'Declaración
Function AdviseClipboardHelperEvents ( _
    pSink As IVsUIHierWinClipboardHelperEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Uso
Dim instance As IVsUIHierWinClipboardHelper
Dim pSink As IVsUIHierWinClipboardHelperEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseClipboardHelperEvents(pSink, _
    pdwCookie)
int AdviseClipboardHelperEvents(
    IVsUIHierWinClipboardHelperEvents pSink,
    out uint pdwCookie
)
int AdviseClipboardHelperEvents(
    [InAttribute] IVsUIHierWinClipboardHelperEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
function AdviseClipboardHelperEvents(
    pSink : IVsUIHierWinClipboardHelperEvents, 
    pdwCookie : uint
) : int

Parameters

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 IVsUIHierWinClipboardHelper::AdviseClipboardHelperEvents(
   [in] IVsUIHierWinClipboardHelperEvents *pSink,
   [out] VSCOOKIE *pdwCookie
);

Use this method to set up notification of hierarchy events related to the clipboard by sinking the hierarchy window to the hierarchy events.

Permissions

See Also

Reference

IVsUIHierWinClipboardHelper Interface

IVsUIHierWinClipboardHelper Members

Microsoft.VisualStudio.Shell.Interop Namespace