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

String object holding the IANA ID which resulted from the Windows ID conversion.

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

String object holding the IANA ID which resulted from the Windows ID conversion.

Returns

Boolean

true if the ID conversion succeeded, false otherwise.

Applies to