Share via


TimeZoneSettings.CurrentTimeZoneDisplayName 属性

定义

获取当前时区的显示名称。

public:
 static property Platform::String ^ CurrentTimeZoneDisplayName { Platform::String ^ get(); };
static winrt::hstring CurrentTimeZoneDisplayName();
public static string CurrentTimeZoneDisplayName { get; }
var string = TimeZoneSettings.currentTimeZoneDisplayName;
Public Shared ReadOnly Property CurrentTimeZoneDisplayName As String

属性值

String

Platform::String

winrt::hstring

当前时区的显示名称。

Windows 要求

应用功能
systemManagement

注解

此 API 需要使用 IoT systemManagement 功能,并在 IgnorableNamespaces 列表中包含 iot。 用户可以将以下内容添加到其 Package.appmanifest <iot:Capability Name="systemManagement"/>,并将 iot 添加到其现有的 IgnorableNamespaces 列表中。

适用于