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);
abstract member GetTimeZoneByIdAsync : string * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>>
override this.GetTimeZoneByIdAsync : string * Azure.Maps.TimeZones.GetTimeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.TimeZones.TimeZoneResult>>
Public Overridable Function GetTimeZoneByIdAsync (timeZoneId As String, options As GetTimeZoneOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TimeZoneResult))
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET