This topic has not yet been rated - Rate this topic

IVsMonitorSelection.AdviseSelectionEvents Method

Registers a VSPackage for selection event notification.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseSelectionEvents(
	IVsSelectionEvents pSink,
	out uint pdwCookie
)

Parameters

pSink
Type: Microsoft.VisualStudio.Shell.Interop.IVsSelectionEvents
[in] Pointer to the IVsSelectionEvents interface of the VSPackage registering for selection event notification.
pdwCookie
Type: System.UInt32%
[out] Pointer to an abstract handle representing the completed registration.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsMonitorSelection::AdviseSelectionEvents(
   [in]  IVsSelectionEvents *psink,
   [out] VSCOOKIE           *pdwCookie
);
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ