IDataEnvironment.GetDesignTimeConnection(DesignerDataConnection) Method
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
- connection
- DesignerDataConnection
The desired data connection.
A DbConnection object that can be used at design time.
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: