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

‘선언
Public Property SelectedObjects As ICollection
    Get
    Set
‘사용 방법
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

See Also

Reference

SelectionContainer Class

SelectionContainer Members

Microsoft.VisualStudio.Shell Namespace