共用方式為


KeyTimeHelper 類別

定義

提供使用 KeyTime 值的公用程式方法。 C# 和 Microsoft Visual Basic 程式碼應該改用 KeyTime 的成員。

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
繼承
Object Platform::Object IInspectable KeyTimeHelper
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

方法

FromTimeSpan(TimeSpan)

根據指定的TimeSpan產生具有初始資料的新KeyTime

適用於