Version

TryGetConstraint(DateTime) Method

Tries to obtain the value of the constraint.
Syntax
public bool TryGetConstraint( 
   out DateTime value
)

Parameters

value
When the method returns, will be the value of the constraint or DateTime.MinValue if the value could not be obtained.

Return Value

True if the constraint value could be obtained; False otherwise.
Remarks

The constraint value can only be obtained if it was set with the one of the SetConstraint methods or a formula was set with one of the SetConstraintFormula methods and the formula equals a constant value, such as =5.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also