Edit

Share via


IDataEnvironment.GetCodeExpression(DesignerDataConnection) Method

Definition

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