DateTimeSettings 类

定义

设置系统日期和时间。

public ref class DateTimeSettings abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DateTimeSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class DateTimeSettings
Public Class DateTimeSettings
继承
Object Platform::Object IInspectable DateTimeSettings
属性

Windows 要求

设备系列
Windows IoT Extension SDK (在 10.0.16299.0 中引入)
API contract
Windows.System.SystemManagementContract (在 v4.0 中引入)

方法

SetSystemDateTime(DateTime)

设置系统日期和时间。

适用于