Export (0) Print
Expand All

Duration.LessThanOrEqual Operator

Determines if the value of one instance of Duration is less than or equal to the value of another instance.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static bool operator <=(
	Duration t1,
	Duration t2


Type: System.Windows.Duration

The first instance of Duration to compare.

Type: System.Windows.Duration

The second instance of Duration to compare.

Return Value

Type: System.Boolean
true if both t1 and t2 have values and t1 is less than or equal to t2; otherwise, false.

Forever is considered greater than any finite value. Any comparison with an Automatic value returns false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft