Share via


ConstraintSolverParams.TimeLimitMilliSec Property

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

Gets or sets the limit for CPU time.

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

Syntax

'Declaration
Public Property TimeLimitMilliSec As Integer
public int TimeLimitMilliSec { get; set; }
public:
property int TimeLimitMilliSec {
    int get ();
    void set (int value);
}
member TimeLimitMilliSec : int with get, set
function get TimeLimitMilliSec () : int
function set TimeLimitMilliSec (value : int)

Property Value

Type: System.Int32
The limit for CPU time.

Remarks

You can use the TimeLimitMilliSec property as an alternative to starting a separate thread and using the Abort property if the interval is short.

The TimeLimitMilliSec property is also used to set the time limit for a search. After the time limit expires, the solver stops the search and the Quality property is set to Unknown, even after the GetNext method is called.

.NET Framework Security

See Also

Reference

ConstraintSolverParams Class

Microsoft.SolverFoundation.Solvers Namespace