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清單。

適用於