Export (0) Print
Expand All

IDataEnvironment Interface

Defines an interface to data services that enables control designers to integrate data store or database-related functionality into their design environment.

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

public interface IDataEnvironment

The IDataEnvironment type exposes the following members.

  NameDescription
Public propertyConnectionsGets a collection of data connections defined in the current design session.
Top

  NameDescription
Public methodBuildConnectionCreates a new data connection or edits an existing connection using the design tool's new connection user interface.
Public methodBuildQueryLaunches a dialog to build a SQL query string.
Public methodConfigureConnectionWrites a connection string to the application's configuration file.
Public methodGetCodeExpressionReturns a code expression that contains the source code required to retrieve a connection string from the application's configuration file.
Public methodGetConnectionSchemaGets the schema for the specified data connection.
Public methodGetDesignTimeConnectionGets a database connection that can be used at design time.
Top

An object that implements the IDataEnvironment interface can access the data connections available to an application at design time. The IDataEnvironment interface provides methods to list available data connections, create new data connections, retrieve schema information from a connection, and save data-connection configuration information to the application's configuration file.

The IDataEnvironment interface enables you to interact with data connections in the design environment, but it is not intended as a data-management API.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft