KeyTimeHelper 类

定义

提供用于处理 KeyTime 值的实用工具方法。 C# 和 Microsoft Visual Basic 代码应改用 KeyTime 的成员。

public ref class KeyTimeHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 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(Microsoft.UI.Xaml.WinUIContract), 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
属性

方法

FromTimeSpan(TimeSpan)

根据指定的 TimeSpan 生成具有初始数据的新 KeyTime。 C# 和 Microsoft Visual Basic 代码应改用 FromTimeSpan

适用于