Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called when the selection changes.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SelectionChange ( _
ppIMI As IntPtr, _
SelCmd As VSMESELCMD _
) As Integer
int SelectionChange(
IntPtr ppIMI,
VSMESELCMD SelCmd
)
int SelectionChange(
[InAttribute] IntPtr ppIMI,
[InAttribute] VSMESELCMD SelCmd
)
abstract SelectionChange :
ppIMI:IntPtr *
SelCmd:VSMESELCMD -> int
function SelectionChange(
ppIMI : IntPtr,
SelCmd : VSMESELCMD
) : int
Parameters
- ppIMI
Type: System.IntPtr
[In] A pointer to a pointer to an object of type IVsMenuItem representing the item to watch for a selection change.
- SelCmd
Type: Microsoft.VisualStudio.Shell.Interop.VSMESELCMD
[In] An object of type VSMESELCMD.
Return Value
Type: System.Int32
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
);
.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.