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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om