IDataEnvironment::GetCodeExpression Method (DesignerDataConnection^)

 

Returns a code expression that contains the source code required to retrieve a connection string from the application's configuration file.

Namespace:   System.ComponentModel.Design.Data
Assembly:  System.Design (in System.Design.dll)

CodeExpression^ GetCodeExpression(
	DesignerDataConnection^ connection
)

Parameters

connection
Type: System.ComponentModel.Design.Data::DesignerDataConnection^

The connection to retrieve from the application's configuration file.

Return Value

Type: System.CodeDom::CodeExpression^

A CodeExpression object containing the source code required to retrieve a connection string from the application's configuration file.

.NET Framework
Available since 2.0
Return to top
Show: