Επεξεργασία

Κοινή χρήση μέσω


DbProviderFactory.CreateDataSource(String) Method

Definition

Returns a new instance of the provider's class that implements the DbDataSource class, representing the database for the given connection string and ready to hand out connections to it.

public:
 virtual System::Data::Common::DbDataSource ^ CreateDataSource(System::String ^ connectionString);
public virtual System.Data.Common.DbDataSource CreateDataSource (string connectionString);
abstract member CreateDataSource : string -> System.Data.Common.DbDataSource
override this.CreateDataSource : string -> System.Data.Common.DbDataSource
Public Overridable Function CreateDataSource (connectionString As String) As DbDataSource

Parameters

connectionString
String

The connection string of the database to be represented by this DbDataSource. The exact contents of the connection string depend on the specific data source for this connection.

Returns

A new instance of DbDataSource.

Applies to