Duration.IsNegative Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if this duration is negative, excluding zero.
public bool IsNegative { [Android.Runtime.Register("isNegative", "()Z", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isNegative", "()Z", "", ApiSince=26)>]
member this.IsNegative : bool
Property Value
true if this duration has a total length less than zero
- Attributes
Remarks
Checks if this duration is negative, excluding zero.
A Duration
represents a directed distance between two points on the time-line and can therefore be positive, zero or negative. This method checks whether the length is less than zero.
Java documentation for java.time.Duration.isNegative()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.