This documentation is archived and is not being maintained.

SelectionContainer.SelectedObjects Property

Gets or sets the collection of selected objects.

This property is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in microsoft.visualstudio.shell.dll)

'Declaration
Public Property SelectedObjects As ICollection
'Usage
Dim instance As SelectionContainer
Dim value As ICollection

value = instance.SelectedObjects

instance.SelectedObjects = value
/** @property */
public ICollection get_SelectedObjects ()

/** @property */
public void set_SelectedObjects (ICollection value)

public function get SelectedObjects () : ICollection

public function set SelectedObjects (value : ICollection)

Property Value

Returns a collection of selected objects.

This collection is equivalent to the collection returned by a call to ISelectionContainer with a selection type of F:Microsoft.VisualStudio.Shell.SelectionContainer.SELECTED. The value of this collection changes when the selection container has its SelectObjects method called.

Show: