IDataEnvironment::GetDesignTimeConnection Method (DesignerDataConnection^)
.NET Framework (current version)
Gets a database connection that can be used at design time.
Assembly: System.Design (in System.Design.dll)
Parameters
- connection
-
Type:
System.ComponentModel.Design.Data::DesignerDataConnection^
The desired data connection.
Return Value
Type: System.Data.Common::DbConnection^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.
.NET Framework
Available since 2.0
Available since 2.0
Show: