Selection Constructor (IEnumerable)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a Selection object with the specified objects selected.
Namespace: System.Activities.Design.Interaction
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Sub New ( _
selectedObjects As IEnumerable _
)
'Usage
Dim selectedObjects As IEnumerable
Dim instance As New Selection(selectedObjects)
public Selection(
IEnumerable selectedObjects
)
public:
Selection(
IEnumerable^ selectedObjects
)
public function Selection(
selectedObjects : IEnumerable
)
new :
selectedObjects:IEnumerable -> Selection
Parameters
- selectedObjects
Type: System.Collections.IEnumerable
An enumeration of objects that should be selected.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If selectedObjects is nulla null reference (Nothing in Visual Basic). |
Remarks
The first object in the enumeration is considered the primary selection.
.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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4