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
'Declaration
Function Advise ( _
pNotify As IVsWindowFrameNotify, _
<OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
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
pNotify
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify[in] A IVsWindowFrameNotify interface to an entity to be called for window frame events.
pdwCookie
Type: UInt32%[out] A cookie associated with the given IVsWindowFrameNotify interface.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.