Duration(TimeSpan) Constructeur

Définition

Initialise une nouvelle instance de la structure Duration avec la valeur TimeSpan spécifiée.

public:
 Duration(TimeSpan timeSpan);
public Duration (TimeSpan timeSpan);
new Windows.UI.Xaml.Duration : TimeSpan -> Windows.UI.Xaml.Duration
Public Sub New (timeSpan As TimeSpan)

Paramètres

timeSpan
TimeSpan

Intervalle de temps initial de cette durée.

Exceptions

timeSpan prend une valeur inférieure à Zero.

Remarques

Ce struct représente la projection .NET du struct Windows Runtime (WinRT). Duration Pour plus d’informations, consultez Durée dans les informations de référence sur l’API UWP.

S’applique à