Share via


KeyTimeHelper Class

Definition

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

public ref class KeyTimeHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class KeyTimeHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class KeyTimeHelper
Public NotInheritable Class KeyTimeHelper
Inheritance
Object Platform::Object IInspectable KeyTimeHelper
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Methods

FromTimeSpan(TimeSpan)

Generates a new KeyTime with initial data based on the specified TimeSpan.

Applies to