SqlAuthenticationProvider.SetProvider メソッド

定義

メソッドで認証プロバイダーを設定します。

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

パラメーター

authenticationMethod
SqlAuthenticationMethod

認証方法。

provider
SqlAuthenticationProvider

認証プロバイダー。

戻り値

操作が成功した場合は true。それ以外の場合は false (たとえば、既存のプロバイダーはオーバーライドを許可しません)。

適用対象