次の方法で共有


IVsTrackSelectionEx.OnSelectChange Method

Reports that the current selection container has changed.

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

Syntax

'宣言
Function OnSelectChange ( _
    pSC As ISelectionContainer _
) As Integer
'使用
Dim instance As IVsTrackSelectionEx
Dim pSC As ISelectionContainer
Dim returnValue As Integer

returnValue = instance.OnSelectChange(pSC)
int OnSelectChange(
    ISelectionContainer pSC
)
int OnSelectChange(
    [InAttribute] ISelectionContainer^ pSC
)
function OnSelectChange(
    pSC : ISelectionContainer
) : int

Parameters

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

ITrackSelection.OnSelectChange(ISelectionContainer)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTrackSelectionEx::OnSelectChange(
   [in] ISelectionContainer * pSC
);

An ISelectionContainer pointer is part of the selection context that is maintained by the environment for every window. The environment uses this pointer to retrieve Properties window data.

Permissions

See Also

Reference

IVsTrackSelectionEx Interface

IVsTrackSelectionEx Members

Microsoft.VisualStudio.Shell.Interop Namespace