Inserts components into the selection container and notifies the shell of the selection change.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Overridable Sub SetSelectedComponents ( _
components As ICollection _
)
'使用
Dim instance As ModelingWindowPane
Dim components As ICollection
instance.SetSelectedComponents(components)
public virtual void SetSelectedComponents(
ICollection components
)
public:
virtual void SetSelectedComponents(
ICollection^ components
)
public function SetSelectedComponents(
components : ICollection
)
Parameters
components
Type: System.Collections.ICollectionThe collection of components to select.
Implements
ISelectionService.SetSelectedComponents(ICollection)
Remarks
If components is a null reference (Nothing in Visual Basic), an empty collection of components is passed.
The existing elements in the selection container are cleared before the new elements are added.
This method implements the IVsTrackSelectionEx interface to notify the shell that the selection has changed.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.