แก้ไข

แชร์ผ่าน


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
Public Sub New (timeSpan As TimeSpan)

Parameters

timeSpan
TimeSpan

Represents the initial time interval of this duration.

Exceptions

Occurs when timeSpan is initialized to a negative value.

Applies to