Share via


MapsTimeZoneClient.GetTimeZoneByIdAsync 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.

This API returns current, historical, and future time zone information for the specified IANA time zone ID.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>> GetTimeZoneByIdAsync(string timeZoneId, Azure.Maps.TimeZones.GetTimeZoneOptions options, System.Threading.CancellationToken cancellationToken = default);

Parameters

timeZoneId
String

The IANA time zone ID.

options
GetTimeZoneOptions

Contains parameters for get timezone by id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

timeZoneId is null.

Applies to

Product Versions
Azure SDK for .NET Preview