ITrackSelection.OnSelectChange(ISelectionContainer) Method

Definition

Reports that the current selection container has changed.

C++/CX
public:
 int OnSelectChange(Microsoft::VisualStudio::Shell::Interop::ISelectionContainer ^ pSC);

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.

Remarks

COM Signature

From designer.idl:

cpp#
HRESULT ITrackSelection::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

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022