อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Duration.GreaterThan(Duration, Duration) Operator

Definition

Determines if one instance of Duration is greater than another.

C#
public static bool operator >(System.Windows.Duration t1, System.Windows.Duration t2);

Parameters

t1
Duration

The first instance of Duration to compare.

t2
Duration

The second instance of Duration to compare.

Returns

true if both t1 and t2 have values and t1 is greater than t2; otherwise, false.

Remarks

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

The equivalent method for this operator is Duration.Compare(Duration, Duration)

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10