Udostępnij za pośrednictwem


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
CancellationToken

Cancellation token. See CancellationToken

Returns

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

Applies to