Export (0) Print
Expand All

Duration.LessThan Operator

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

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

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

Parameters

t1
Type: System.Windows.Duration

The first instance of Duration to compare.

t2
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 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
Show:
© 2015 Microsoft