Duration(TimeSpan) Duration(TimeSpan) Duration(TimeSpan) Constructor

Definition

Initializes a new instance of the Duration structure with the supplied TimeSpan value.

public:
 Duration(TimeSpan timeSpan);
public Duration (TimeSpan timeSpan);
new System.Windows.Duration : TimeSpan -> System.Windows.Duration

Parameters

timeSpan
TimeSpan TimeSpan TimeSpan

Represents the initial time interval of this duration.

Exceptions

Occurs when timeSpan is initialized to a negative value.

Applies to