IDataEnvironment.GetDesignTimeConnection(DesignerDataConnection) 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.
Gets a database connection that can be used at design time.
public:
System::Data::Common::DbConnection ^ GetDesignTimeConnection(System::ComponentModel::Design::Data::DesignerDataConnection ^ connection);
public System.Data.Common.DbConnection GetDesignTimeConnection (System.ComponentModel.Design.Data.DesignerDataConnection connection);
abstract member GetDesignTimeConnection : System.ComponentModel.Design.Data.DesignerDataConnection -> System.Data.Common.DbConnection
Public Function GetDesignTimeConnection (connection As DesignerDataConnection) As DbConnection
Parameters
- connection
- DesignerDataConnection
The desired data connection.
Returns
A DbConnection object that can be used at design time.
Remarks
The GetDesignTimeConnection method returns a valid, open connection to the data store that can be used by the control designer.
Control designers should use the GetDesignTimeConnection to obtain a data connection and should not attempt to open a connection using the ConnectionString property.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για