TimeZoneInfo.TryConvertIanaIdToWindowsId(String, String) Method

Definition

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

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

Parameters

ianaId
String

The IANA time zone ID.

windowsId
String

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

Returns

Boolean

true if the ID conversion succeeded, false otherwise.

Applies to