GraphCredential.GetTokenAsync(CancellationToken) 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.
Resolve the bearer token, or null when no credential is available.
public System.Threading.Tasks.Task<string?> GetTokenAsync(System.Threading.CancellationToken cancellationToken = default);
member this.GetTokenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetTokenAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- cancellationToken
- CancellationToken
A token to cancel the acquisition.