Udostępnij za pośrednictwem


ITrackSelection.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.

Remarks

COM Signature

From designer.idl:

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