Partage via


KeyTime.FromTimeSpan(TimeSpan) Méthode

Définition

Crée un KeyTime à l’aide du TimeSpan fourni.

public:
 static Windows::UI::Xaml::Media::Animation::KeyTime FromTimeSpan(TimeSpan timeSpan);
public static Windows.UI.Xaml.Media.Animation.KeyTime FromTimeSpan (TimeSpan timeSpan);
static member FromTimeSpan : TimeSpan -> Windows.UI.Xaml.Media.Animation.KeyTime
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As KeyTime

Paramètres

timeSpan
TimeSpan

Valeur de la nouvelle instance KeyTime.

Retours

Nouveau KeyTime, initialisé à l’aide de la valeur timeSpan.

Exceptions

Le timeSpan spécifié est en dehors de la plage autorisée.

Remarques

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

S’applique à