Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 OnSelectChange Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio SDK
ITrackSelection..::.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)
Visual Basic (Declaration)
Function OnSelectChange ( _
    pSC As ISelectionContainer _
) As Integer
Visual Basic (Usage)
Dim instance As ITrackSelection
Dim pSC As ISelectionContainer
Dim returnValue As Integer

returnValue = instance.OnSelectChange(pSC)
C#
int OnSelectChange(
    ISelectionContainer pSC
)
Visual C++
int OnSelectChange(
    [InAttribute] ISelectionContainer^ pSC
)
JScript
function OnSelectChange(
    pSC : ISelectionContainer
) : int

Parameters

pSC
Type: Microsoft.VisualStudio.Shell.Interop..::.ISelectionContainer
[in] Pointer to the ISelectionContainer interface to access Properties window data for the current selection.

Return Value

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

COM Signature

From designer.idl:

Visual C++
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.

© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker