ActiveDirectoryAuthenticationProvider.IsSupported Method

Definition

Indicates whether the specified authentication method is supported.

C#
public override bool IsSupported (Microsoft.Data.SqlClient.SqlAuthenticationMethod authentication);

Parameters

authentication
SqlAuthenticationMethod

The authentication method.

Returns

true if the specified authentication method is supported; otherwise, false.

Remarks

The supported authentication modes with <xref=Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationProvider> are:

  • Active Directory Password
  • Active Directory Integrated
  • Active Directory Interactive
  • Active Directory Service Principal
  • Active Directory Device Code Flow
  • Active Directory Managed Identity
  • Active Directory MSI
  • Active Directory Default

Applies to

Product Versions
SqlClient .NET Core 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2