SelectionContainer.SelectedObjects Property
Gets or sets the collection of selected objects.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Déclaration
Public Property SelectedObjects As ICollection
Get
Set
'Utilisation
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);
}
member SelectedObjects : ICollection with get, set
function get SelectedObjects () : ICollection
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 SELECTED. The value of this collection changes when the selection container has its SelectObjects method called.
.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.