Udostępnij za pośrednictwem


IVsWindowFrame2.Advise(IVsWindowFrameNotify, UInt32) Method

Definition

Enables a client to be notified of window frame events.

public:
 int Advise(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrameNotify ^ pNotify, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int Advise(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrameNotify const & pNotify, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int Advise (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify pNotify, out uint pdwCookie);
abstract member Advise : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify * uint32 -> int
Public Function Advise (pNotify As IVsWindowFrameNotify, ByRef pdwCookie As UInteger) As Integer

Parameters

pNotify
IVsWindowFrameNotify

[in] A IVsWindowFrameNotify interface to an entity to be called for window frame events.

pdwCookie
UInt32

[out] A cookie associated with the given IVsWindowFrameNotify interface.

Returns

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  
);  

Applies to