ModelingWindowPane.SetSelectedComponents Method (ICollection)
Adds the specified components into the selection container and notifies the shell of the selection change.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Public Overridable Sub SetSelectedComponents ( _
components As ICollection _
)
public virtual void SetSelectedComponents(
ICollection components
)
public:
virtual void SetSelectedComponents(
ICollection^ components
)
abstract SetSelectedComponents :
components:ICollection -> unit
override SetSelectedComponents :
components:ICollection -> unit
public function SetSelectedComponents(
components : ICollection
)
Parameters
components
Type: ICollectionThe collection of components to select.
Implements
ISelectionService.SetSelectedComponents(ICollection)
Remarks
If components is nulla null reference (Nothing in Visual Basic), an empty collection of components is used.
The existing elements in the selection container are replaced with the new elements are added.
If the selection container's contents are modified, this method calls OnSelectionChanging and OnSelectionChanged.
.NET Framework Security
- 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.