Condividi tramite


IVsWindowFrame2.Advise Method

Enables a client to be notified of window frame events.

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

Syntax

'Dichiarazione
Function Advise ( _
    pNotify As IVsWindowFrameNotify, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Utilizzo
Dim instance As IVsWindowFrame2
Dim pNotify As IVsWindowFrameNotify
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.Advise(pNotify, _
    pdwCookie)
int Advise(
    IVsWindowFrameNotify pNotify,
    out uint pdwCookie
)
int Advise(
    [InAttribute] IVsWindowFrameNotify^ pNotify, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract Advise : 
        pNotify:IVsWindowFrameNotify * 
        pdwCookie:uint32 byref -> int 
function Advise(
    pNotify : IVsWindowFrameNotify, 
    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

This method advises IVsWindowFrameNotify, IVsWindowFrameNotify2, and IVsWindowFrameNotify3 events.

COM Signature

From vsshell80.idl:

HRESULT IVsWindowFrame2::Advise(
   [in] IVsWindowFrameNotify *pNotify, 
   [out] VSCOOKIE *pdwCookie
);

.NET Framework Security

See Also

Reference

IVsWindowFrame2 Interface

IVsWindowFrame2 Members

Microsoft.VisualStudio.Shell.Interop Namespace