ActiveDirectoryAuthenticationProvider.IsSupported 方法

定义

指示是否支持指定的身份验证方法。

public:
 override bool IsSupported(Microsoft::Data::SqlClient::SqlAuthenticationMethod authentication);
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

身份验证方法。

返回

如果支持指定的身份验证方法,则为 true;否则为 false

注解

xref=Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationProvider> 支持的身份验证模式<为:

  • Active Directory 密码
  • Active Directory 已集成
  • Azure Active 交互式
  • Active Directory 服务主体
  • Active Directory 设备代码流
  • Active Directory 托管标识
  • Active Directory MSI
  • Active Directory 默认

适用于