-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.DurationHelper.GetHasTimeSpan(Windows.UI.Xaml.Duration) |
winrt method |
Returns whether the TimeSpan component of a given Duration holds a non-null value. C# and Microsoft Visual Basic code should use Duration.HasTimeSpan instead.
The Duration value to evaluate.
true if the TimeSpan component of the provided Duration is not null; otherwise, false.
If this method returns false, then the Duration is either uninitialized or holds one of the special values of Automatic or Forever.