IVsMonitorSelection.AdviseSelectionEvents Method
Registers a VSPackage for selection event notification.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
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.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
- 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.