AbstractPublicClientAcquireTokenParameterBuilder<T>.ExecuteAsync Method

Definition

Executes the Token request asynchronously, with a possibility of cancelling the asynchronous method.

public override System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> ExecuteAsync (System.Threading.CancellationToken cancellationToken);
override this.ExecuteAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Public Overrides Function ExecuteAsync (cancellationToken As CancellationToken) As Task(Of AuthenticationResult)

Parameters

cancellationToken
System.Threading.CancellationToken

Cancellation token. See System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<AuthenticationResult>

Authentication result containing a token for the requested scopes and parameters set in the builder.

Applies to