SqlDataSource.GetDbProviderFactory Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne l’objet DbProviderFactory associé au fournisseur ADO.NET identifié par la ProviderName propriété.
protected:
virtual System::Data::Common::DbProviderFactory ^ GetDbProviderFactory();
protected virtual System.Data.Common.DbProviderFactory GetDbProviderFactory();
abstract member GetDbProviderFactory : unit -> System.Data.Common.DbProviderFactory
override this.GetDbProviderFactory : unit -> System.Data.Common.DbProviderFactory
Protected Overridable Function GetDbProviderFactory () As DbProviderFactory
Retours
Un DbProviderFactory qui représente le fournisseur ADO.NET identifié ; sinon, et l’instance du System.Data.SqlClient, si aucun fournisseur n’est défini.
Remarques
La propriété DbProviderFactory est utilisée par le contrôle SqlDataSource pour créer les objets.NET de connexion, de commande et de paramètres ADO appropriés lors de l’interaction avec une base de données.