SqlAuthenticationProvider.GetProvider(SqlAuthenticationMethod) 方法

定义

按方法获取验证提供程序。

public:
 static Microsoft::Data::SqlClient::SqlAuthenticationProvider ^ GetProvider(Microsoft::Data::SqlClient::SqlAuthenticationMethod authenticationMethod);
public static Microsoft.Data.SqlClient.SqlAuthenticationProvider GetProvider (Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod);
static member GetProvider : Microsoft.Data.SqlClient.SqlAuthenticationMethod -> Microsoft.Data.SqlClient.SqlAuthenticationProvider
Public Shared Function GetProvider (authenticationMethod As SqlAuthenticationMethod) As SqlAuthenticationProvider

参数

authenticationMethod
SqlAuthenticationMethod

身份验证方法。

返回

验证提供程序或 null(若未找到)。

适用于