Share via


ActiveDirectoryAuthenticationProvider.AcquireTokenAsync Method

Definition

Acquires a security token from the authority.

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

Parameters

parameters
SqlAuthenticationParameters

The Active Directory authentication parameters passed to authentication providers.

Returns

Represents an asynchronous operation that returns the authentication token.

Applies to