TimeZoneInfo.TryConvertWindowsIdToIanaId Method

Definition

Overloads

TryConvertWindowsIdToIanaId(String, String)

Tries to convert a Windows time zone ID to an IANA ID.

TryConvertWindowsIdToIanaId(String, String, String)

Tries to convert a Windows time zone ID to an IANA ID.

TryConvertWindowsIdToIanaId(String, String)

Tries to convert a Windows time zone ID to an IANA ID.

public:
 static bool TryConvertWindowsIdToIanaId(System::String ^ windowsId, [Runtime::InteropServices::Out] System::String ^ % ianaId);
public static bool TryConvertWindowsIdToIanaId (string windowsId, out string? ianaId);
static member TryConvertWindowsIdToIanaId : string * string -> bool
Public Shared Function TryConvertWindowsIdToIanaId (windowsId As String, ByRef ianaId As String) As Boolean

Parameters

windowsId
String

The Windows time zone ID.

ianaId
String

When this method returns, contains the IANA ID that corresponds to the specified Windows ID.

Returns

Boolean

true if the ID conversion succeeded, false otherwise.

Applies to

TryConvertWindowsIdToIanaId(String, String, String)

Tries to convert a Windows time zone ID to an IANA ID.

public:
 static bool TryConvertWindowsIdToIanaId(System::String ^ windowsId, System::String ^ region, [Runtime::InteropServices::Out] System::String ^ % ianaId);
public static bool TryConvertWindowsIdToIanaId (string windowsId, string? region, out string? ianaId);
static member TryConvertWindowsIdToIanaId : string * string * string -> bool
Public Shared Function TryConvertWindowsIdToIanaId (windowsId As String, region As String, ByRef ianaId As String) As Boolean

Parameters

windowsId
String

The Windows time zone ID.

region
String

The ISO 3166 code for the country/region.

ianaId
String

When this method returns, contains the IANA ID that corresponds to the specified Windows ID.

Returns

Boolean

true if the ID conversion succeeded, false otherwise.

Applies to