Partager via


SelectionContainer.SelectedObjects Property

Gets or sets the collection of selected objects.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

Public Property SelectedObjects As ICollection

Dim instance As SelectionContainer
Dim value As ICollection

value = instance.SelectedObjects

instance.SelectedObjects = value
public ICollection SelectedObjects { get; set; }
public:
property ICollection^ SelectedObjects {
    ICollection^ get ();
    void set (ICollection^ value);
}
public function get SelectedObjects () : ICollection
public function set SelectedObjects (value : ICollection)

Property Value

Type: System.Collections.ICollection

Returns a collection of selected objects.

Remarks

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.

Permissions

See Also

Reference

SelectionContainer Class

SelectionContainer Members

Microsoft.VisualStudio.Shell Namespace