ActiveDirectoryAuthenticationProvider.IsSupported Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the specified authentication method is supported.
public:
override bool IsSupported(Microsoft::Data::SqlClient::SqlAuthenticationMethod authentication);
C#
public override bool IsSupported (Microsoft.Data.SqlClient.SqlAuthenticationMethod authentication);
override this.IsSupported : Microsoft.Data.SqlClient.SqlAuthenticationMethod -> bool
Public Overrides Function IsSupported (authentication As SqlAuthenticationMethod) As Boolean
- authentication
- SqlAuthenticationMethod
The authentication method.
true
if the specified authentication method is supported; otherwise, false
.
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
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 |