Share via


TimeZoneSettings.ChangeTimeZoneByDisplayName(String) Method

Definition

Changes the time zone using the display name.

public:
 static void ChangeTimeZoneByDisplayName(Platform::String ^ timeZoneDisplayName);
 static void ChangeTimeZoneByDisplayName(winrt::hstring const& timeZoneDisplayName);
public static void ChangeTimeZoneByDisplayName(string timeZoneDisplayName);
function changeTimeZoneByDisplayName(timeZoneDisplayName)
Public Shared Sub ChangeTimeZoneByDisplayName (timeZoneDisplayName As String)

Parameters

timeZoneDisplayName
String

Platform::String

winrt::hstring

The display name of the time zone to change to.

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