Constraint Collection.Try Get Value Method
Gets the constraint with the specified name.
Definition
Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
true if the Constraint named name was successfully removed from the collection; otherwise, false. This method also returns false if a Constraint named name is not found in the original collection.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public bool TryGetValue(
string name,
out Constraint value
)
Parameters
- name String
- The name of the Constraint to get.
- value Constraint
- When this method returns, the Constraint named name; otherwise null.
Return Value
Booleantrue if the Constraint named name was successfully removed from the collection; otherwise, false. This method also returns false if a Constraint named name is not found in the original collection.