Method GetTokenInfoAsync
GetTokenInfoAsync(CancellationToken)
Returns an instance of TokenInfo generated by this credential.
Declaration
public Task<TokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TokenInfo> | Returns the non-expired token information generated by this credential. |
Remarks
If the token has expired, this method regenerates the access token. Token expiration is based on the TokenExpirationInterval.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.6 |
.NET | 200.6 |
.NET Windows | 200.6 |
.NET Android | 200.6 |
.NET iOS | 200.6 |
.NET Framework | 200.6 |
UWP | 200.6 |