DbDataSource.OpenConnection 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, open connection to the database represented by this DbDataSource.
public:
System::Data::Common::DbConnection ^ OpenConnection();
public System.Data.Common.DbConnection OpenConnection ();
member this.OpenConnection : unit -> System.Data.Common.DbConnection
Public Function OpenConnection () As DbConnection
Returns
A new, open connection to the database represented by this DbDataSource.
Remarks
The returned connection is already open, and is ready for immediate use.
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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za