SqlAuthenticationProvider.AcquireTokenAsync Method

Definition

Acquires an access token from the authority.

public:
 abstract System::Threading::Tasks::Task<Microsoft::Data::SqlClient::SqlAuthenticationToken ^> ^ AcquireTokenAsync(Microsoft::Data::SqlClient::SqlAuthenticationParameters ^ parameters);
public abstract System.Threading.Tasks.Task<Microsoft.Data.SqlClient.SqlAuthenticationToken> AcquireTokenAsync(Microsoft.Data.SqlClient.SqlAuthenticationParameters parameters);
abstract member AcquireTokenAsync : Microsoft.Data.SqlClient.SqlAuthenticationParameters -> System.Threading.Tasks.Task<Microsoft.Data.SqlClient.SqlAuthenticationToken>
Public MustOverride Function AcquireTokenAsync (parameters As SqlAuthenticationParameters) As Task(Of SqlAuthenticationToken)

Parameters

parameters
SqlAuthenticationParameters

The parameters passed to the provider by the driver.

Returns

Represents an asynchronous operation that returns the AD authentication token.

Applies to