IVsMenuEditorSite.SelectionChange(IntPtr, VSMESELCMD) Method

Definition

Called when the selection changes.

public:
 int SelectionChange(IntPtr ppIMI, Microsoft::VisualStudio::Shell::Interop::VSMESELCMD SelCmd);
public int SelectionChange (IntPtr ppIMI, Microsoft.VisualStudio.Shell.Interop.VSMESELCMD SelCmd);
abstract member SelectionChange : nativeint * Microsoft.VisualStudio.Shell.Interop.VSMESELCMD -> int
Public Function SelectionChange (ppIMI As IntPtr, SelCmd As VSMESELCMD) As Integer

Parameters

ppIMI
IntPtr

nativeint

[In] A pointer to a pointer to an object of type IVsMenuItem representing the item to watch for a selection change.

SelCmd
VSMESELCMD

[In] An object of type VSMESELCMD.

Returns

SelectionChange() takes an array from IVsMenuItem, but supports receiving this only if the sel command is SELCMD_SELCHANGE, since you cannot view code or properties for multiple items.If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsMenuEditorSite::SelectionChange(  
   [in]IVsMenuItem **ppIMI,   
   [in]VSMESELCMD SelCmd  
);  

Applies to