Share via


AlgebraContext.ThreadCountLimit 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 policy limit on threading.

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

Syntax

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

Property Value

Type: System.Int32
The policy limit.

Remarks

The ThreadCountLimit property cannot be set outside of the range between one and the ProcessorCount value. Values are silently bounded at those limits.

Examples

ThreadCountLimit = int.Parse(args[n]);

.NET Framework Security

See Also

Reference

AlgebraContext Class

Microsoft.SolverFoundation.Common Namespace