共用方式為


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)

設定系統日期和時間。

適用於