TimeZoneInfo.TryConvertIanaIdToWindowsId(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
When this method returns, contains the Windows ID that corresponds to the specified IANA ID.
Returns
true
if the ID conversion succeeded, false
otherwise.