CspTerm.Key Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets an identifier for variable or function terms.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public MustOverride Property Key As Object
public abstract Object Key { get; set; }
public:
virtual property Object^ Key {
Object^ get () abstract;
void set (Object^ value) abstract;
}
abstract Key : Object with get, set
abstract function get Key () : Object
abstract function set Key (value : Object)
Property Value
Type: System.Object
An identifier for variable or function terms.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | An attempt is made to change an existing key. |
Remarks
A variable term is created together with a key object to function as its identifier. By default, function terms do not have keys. Keys are added to a dictionary and appear in the solution.
.NET Framework Security
- 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.