Selection Constructor (IEnumerable<ModelItem>, Predicate<ModelItem>)

[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(Of ModelItem), _
    match As Predicate(Of ModelItem) _
)
'Usage
Dim selectedObjects As IEnumerable(Of ModelItem)
Dim match As Predicate(Of ModelItem)

Dim instance As New Selection(selectedObjects, _
    match)
public Selection(
    IEnumerable<ModelItem> selectedObjects,
    Predicate<ModelItem> match
)
public:
Selection(
    IEnumerable<ModelItem^>^ selectedObjects, 
    Predicate<ModelItem^>^ match
)
public function Selection(
    selectedObjects : IEnumerable<ModelItem>, 
    match : Predicate<ModelItem>
)
new : 
        selectedObjects:IEnumerable<ModelItem> * 
        match:Predicate<ModelItem> -> Selection

Parameters

  • match
    Type: System.Predicate<ModelItem>
    The criteria for including objects. Only those objects in selectedObjects that match the predicate will be added to the selection.

Exceptions

Exception Condition
ArgumentNullException

If selectedObjects or match is nulla null reference (Nothing in Visual Basic).

Remarks

The first object in the enumeration that matches the predicate is considered the primary selection.

.NET Framework Security

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

See Also

Reference

Selection Class

Selection Members

Selection Overload

System.Activities.Design.Interaction Namespace