Duration.HasTimeSpan Property


Gets a value that indicates if this Duration represents a TimeSpan value.

 property bool HasTimeSpan { bool get(); };
public bool HasTimeSpan { get; }
member this.HasTimeSpan : bool
Public ReadOnly Property HasTimeSpan As Boolean

Property Value

true if this Duration is a TimeSpan value; otherwise, false.


This struct represents the .NET projection of the Windows Runtime (WinRT) Duration struct. For more information, see Duration in the UWP API reference.

Applies to