Model.ForEachWhere Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a term for each element if a condition is met.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Shared Function ForEachWhere ( _
    range As Set, _
    values As Func, _
    condition As Boolean _
) As Term
public static Term ForEachWhere(
    Set range,
    Func values,
    bool condition
)
public:
static Term^ ForEachWhere(
    Set^ range, 
    Func^ values, 
    bool condition
)
static member ForEachWhere : 
        range:Set * 
        values:Func * 
        condition:bool -> Term 
public static function ForEachWhere(
    range : Set, 
    values : Func, 
    condition : boolean
) : Term

Parameters

  • condition
    Type: System.Boolean
    The condition that determines whether an element is expanded into a term.

Return Value

Type: Microsoft.SolverFoundation.Services.Term
A term for each element.

.NET Framework Security

See Also

Reference

Model Class

Microsoft.SolverFoundation.Services Namespace