Show / Hide Table of Contents

Method GetTokenInfoAsync

GetTokenInfoAsync(CancellationToken)

Returns an instance of OAuthUserTokenInfo generated by this credential.

Declaration
public Task<OAuthUserTokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<OAuthUserTokenInfo>

A task that represents the asynchronous creation operation. The value of the task result is an OAuthUserTokenInfo.

Remarks

If the access token has expired, this method regenerates it. If the RefreshTokenExchangeInterval is set, this method exchanges the refresh token at specified interval. While regenerating the access token or exchanging the refresh token, if the refresh token is expired, an exception will be thrown.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.6 - 200.7
.NET200.6 - 200.7
.NET Windows200.6 - 200.7
.NET Android200.6 - 200.7
.NET iOS200.6 - 200.7
.NET Framework200.6 - 200.7
UWP200.6 - 200.7
In This Article
Back to top Copyright © 2022 Esri.