Langage

Duration(TimeSpan) Constructeur

Définition

Initialise une nouvelle instance du Duration struct avec la valeur spécifiée TimeSpan .

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 la 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 la référence de l’API UWP.

S’applique à