DbDataSource.CreateConnection 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, closed connection to the database represented by this DbDataSource.
public:
System::Data::Common::DbConnection ^ CreateConnection();
public System.Data.Common.DbConnection CreateConnection ();
member this.CreateConnection : unit -> System.Data.Common.DbConnection
Public Function CreateConnection () As DbConnection
Returns
A new, closed connection to the database represented by this DbDataSource.
Remarks
The connection must be opened before it can be used.
It is the responsibility of the caller to properly dispose the connection returned by this method. Failure to do so may result in a connection leak.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.