TermModel.AddVariable Method (Object, Int32%, IEnumerable<Rational>)
Solver Foundation 3.0
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a variable that has a fixed set of possible values to a model.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
public bool AddVariable( Object key, out int vid, IEnumerable<Rational> possibleValues )
- Type: System.Object
Optional. The key for the variable, or null.
- Type: System.Int32%
The index of the new variable or of an existing variable that has the same key.
Return ValueType: System.Boolean
true if a new variable is added; false if an existing variable has the specified key.
ImplementsITermModel.AddVariable(Object, Int32, IEnumerable<Rational>)
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.