System.Web.UI.Design.DesignTimeData.GetSelectedDataSource Method

Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data-source name and member name.

Syntax

public static IEnumerable GetSelectedDataSource (System.ComponentModel.IComponent component, string dataSource, string dataMember)

Parameters

component
The object implementing System.ComponentModel.IComponent that contains the data sourced property.
dataSource
The data source to retrieve.
dataMember
The data member to retrieve.

Returns

An object implementing IEnumerable containing the data member, or null if the data source, member, or component's site could not be accessed.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0