DbProviderFactory.CreateDataSource(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.