Dela via


SqlAuthenticationProvider.GetProvider(SqlAuthenticationMethod) Method

Definition

Gets an authentication provider by method.

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

Parameters

authenticationMethod
SqlAuthenticationMethod

The authentication method.

Returns

The authentication provider or null if not found.

Applies to