IVsWindowFrame2.Advise(IVsWindowFrameNotify, UInt32) Methode

Definition

Ermöglicht einem Client, von den Fensterrahmenereignissen benachrichtigt zu werden.

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

Parameter

pNotify
IVsWindowFrameNotify

[in] Eine IVsWindowFrameNotify-Schnittstelle zu einer Entität, die für Fensterrahmenereignisse aufgerufen werden soll.

pdwCookie
UInt32

[out] Ein Cookie, das der angegebenen IVsWindowFrameNotify-Schnittstelle zugeordnet ist.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

Diese Methode rät IVsWindowFrameNotify IVsWindowFrameNotify2 -,-und- IVsWindowFrameNotify3 Ereignisse ab.

COM-Signatur

Aus vsshell80. idl:

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

Gilt für