Share via


IVsTrackSelectionEx.OnSelectChange(ISelectionContainer) Method

Definition

Reports that the current selection container has changed.

public:
 int OnSelectChange(Microsoft::VisualStudio::Shell::Interop::ISelectionContainer ^ pSC);
public:
 int OnSelectChange(Microsoft::VisualStudio::Shell::Interop::ISelectionContainer ^ pSC);
int OnSelectChange(Microsoft::VisualStudio::Shell::Interop::ISelectionContainer const & pSC);
public int OnSelectChange (Microsoft.VisualStudio.Shell.Interop.ISelectionContainer pSC);
abstract member OnSelectChange : Microsoft.VisualStudio.Shell.Interop.ISelectionContainer -> int
Public Function OnSelectChange (pSC As ISelectionContainer) As Integer

Parameters

pSC
ISelectionContainer

[in] Pointer to the ISelectionContainer interface to access Properties window data for the current selection.

Returns

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

Implements

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.

Applies to