IDataEnvironment.GetCodeExpression(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.
Returns a code expression that contains the source code required to retrieve a connection string from the application's configuration file.
public:
System::CodeDom::CodeExpression ^ GetCodeExpression(System::ComponentModel::Design::Data::DesignerDataConnection ^ connection);
public System.CodeDom.CodeExpression GetCodeExpression (System.ComponentModel.Design.Data.DesignerDataConnection connection);
abstract member GetCodeExpression : System.ComponentModel.Design.Data.DesignerDataConnection -> System.CodeDom.CodeExpression
Public Function GetCodeExpression (connection As DesignerDataConnection) As CodeExpression
Parameters
- connection
- DesignerDataConnection
The connection to retrieve from the application's configuration file.
Returns
A CodeExpression object containing the source code required to retrieve a connection string from the application's configuration file.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.