Key​Time​Helper Key​Time​Helper Key​Time​Helper Class

Definition

Provides utility methods for working with KeyTime values. C# and Microsoft Visual Basic code should use members of KeyTime instead.

public : sealed class KeyTimeHelper : IKeyTimeHelperpublic sealed class KeyTimeHelper : IKeyTimeHelperPublic NotInheritable Class KeyTimeHelper Implements IKeyTimeHelper
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

FromTimeSpan(TimeSpan) FromTimeSpan(TimeSpan) FromTimeSpan(TimeSpan)

Generates a new KeyTime with initial data based on the specified TimeSpan. C# and Microsoft Visual Basic code should use FromTimeSpan instead.

public : static KeyTime FromTimeSpan(TimeSpan timeSpan)public static KeyTime FromTimeSpan(TimeSpan timeSpan)Public Static Function FromTimeSpan(timeSpan As TimeSpan) As KeyTime
Parameters
timeSpan
TimeSpan TimeSpan TimeSpan

The TimeSpan data value to establish.

Returns

The generated KeyTime value.

Attributes