Megosztás a következőn keresztül:


TimeZoneSettings.CurrentTimeZoneDisplayName Property

Definition

Gets the display name of the current time zone.

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

Property Value

String

Platform::String

winrt::hstring

The display name of the current time zone.

Windows requirements

App capabilities
systemManagement

Remarks

This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest: <iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.

Applies to