Udostępnij za pośrednictwem


SqlAuthenticationProvider.SetProvider Metoda

Definicja

Ustawia dostawcę uwierzytelniania według metody.

public:
 static bool SetProvider(Microsoft::Data::SqlClient::SqlAuthenticationMethod authenticationMethod, Microsoft::Data::SqlClient::SqlAuthenticationProvider ^ provider);
public static bool SetProvider (Microsoft.Data.SqlClient.SqlAuthenticationMethod authenticationMethod, Microsoft.Data.SqlClient.SqlAuthenticationProvider provider);
static member SetProvider : Microsoft.Data.SqlClient.SqlAuthenticationMethod * Microsoft.Data.SqlClient.SqlAuthenticationProvider -> bool
Public Shared Function SetProvider (authenticationMethod As SqlAuthenticationMethod, provider As SqlAuthenticationProvider) As Boolean

Parametry

authenticationMethod
SqlAuthenticationMethod

Metoda uwierzytelniania.

provider
SqlAuthenticationProvider

Dostawca uwierzytelniania.

Zwraca

true jeśli operacja zakończyła się pomyślnie; false w przeciwnym razie (na przykład istniejący dostawca nie zezwala na zastępowanie).

Dotyczy