Partager via


IVsTrackSelectionEx.OnSelectChangeEx Method

Informs the environment that a change in the current selection has occurred.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function OnSelectChangeEx ( _
    pHier As IntPtr, _
    itemid As UInteger, _
    pMIS As IVsMultiItemSelect, _
    pSC As IntPtr _
) As Integer
'Utilisation
Dim instance As IVsTrackSelectionEx
Dim pHier As IntPtr
Dim itemid As UInteger
Dim pMIS As IVsMultiItemSelect
Dim pSC As IntPtr
Dim returnValue As Integer

returnValue = instance.OnSelectChangeEx(pHier, _
    itemid, pMIS, pSC)
int OnSelectChangeEx(
    IntPtr pHier,
    uint itemid,
    IVsMultiItemSelect pMIS,
    IntPtr pSC
)
int OnSelectChangeEx(
    [InAttribute] IntPtr pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] IVsMultiItemSelect^ pMIS, 
    [InAttribute] IntPtr pSC
)
abstract OnSelectChangeEx : 
        pHier:IntPtr * 
        itemid:uint32 * 
        pMIS:IVsMultiItemSelect * 
        pSC:IntPtr -> int 
function OnSelectChangeEx(
    pHier : IntPtr, 
    itemid : uint, 
    pMIS : IVsMultiItemSelect, 
    pSC : IntPtr
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Identifier of the project item of the new selection. For a list of valid itemid values, see VSITEMID.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTrackSelectionEx::OnSelectChangeEx(
   [in] IVsHierarchy *pHier,
   [in] VSITEMID itemid,
   [in] IVsMultiItemSelect *pMIS,
   [in] ISelectionContainer *pSC
);

Project-type windows call OnSelectChangeEx to alert the environment to a change in the active window and the current selection. The environment uses the pHier and itemid parameters to update the Solution Explorer window if necessary. The pMIS parameter provides access to a multiple selection and the pSC parameter provides access to a single selection.

.NET Framework Security

See Also

Reference

IVsTrackSelectionEx Interface

IVsTrackSelectionEx Members

Microsoft.VisualStudio.Shell.Interop Namespace