CspComposite.ExactlyMofN Method

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

Tests if exactly m of the inputs are true.

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


Public Function ExactlyMofN ( _
    m As Integer, _
    ParamArray inputs As CspTerm() _
) As CspTerm
public CspTerm ExactlyMofN(
    int m,
    params CspTerm[] inputs
CspTerm^ ExactlyMofN(
    int m, 
    ... array<CspTerm^>^ inputs
member ExactlyMofN : 
        m:int * 
        inputs:CspTerm[] -> CspTerm 
public function ExactlyMofN(
    m : int, 
    ... inputs : CspTerm[]
) : CspTerm


  • m
    Type: System.Int32
    The exact number of inputs that are true.

Return Value

Type: Microsoft.SolverFoundation.Solvers.CspTerm
true if exactly m inputs are true; otherwise, false.

.NET Framework Security

See Also


CspComposite Class

Microsoft.SolverFoundation.Solvers Namespace