This documentation is archived and is not being maintained.

ConnectionStringsExpressionEditor::GetExpressionEditorSheet Method

This member overrides ExpressionEditor::GetExpressionEditorSheet(String, IServiceProvider), and more complete documentation might be available in that topic.

Returns an expression editor sheet for a connection string expression.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public:
virtual ExpressionEditorSheet^ GetExpressionEditorSheet(
	String^ expression, 
	IServiceProvider^ serviceProvider
) override

Parameters

expression
Type: System::String

The expression string set for a control property, used to initialize the expression editor sheet. The expression does not include the ConnectionStrings expression prefix.

serviceProvider
Type: System::IServiceProvider

A service provider implementation supplied by the designer host, used to obtain additional design-time services.

Return Value

Type: System.Web.UI.Design::ExpressionEditorSheet
An ExpressionEditorSheet instance that defines the connection string expression properties.

The GetExpressionEditorSheet method returns an editor sheet implementation for connection string expressions. The editor sheet for connection string expressions allows users to select a connection name and type, based on the current connection strings that are defined in the connectionStrings Element (ASP.NET Settings Schema) section of the Web configuration file. Once users have selected the connection expression properties, the editor sheet implementation combines the connection name and type into a connection string expression, which is returned to the visual designer.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: