IDataEnvironment.Connections Property

Gets a collection of data connections defined in the current design session.

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

ICollection Connections { get; }
/** @property */
ICollection get_Connections ()

function get Connections () : ICollection

Not applicable.

Property Value

A collection of DesignerDataConnection objects representing the data connections available in the current design session.

The Connections property returns the set of connections available at design time. Your implementation of the Connections property can return either the list of connections defined in the current Web application, or a list of connections defined at a global level, such as a list of data connections maintained by the design environment.

Each connection in the collection should have a unique connection string. If your collection includes both connections from the application's configuration file and global connections, your implementation must handle the case where connections from the global list and the configuration file have the same connection string. In this case, it is recommended that you eliminate duplicates and use the configuration-file connection only.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions