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.

Syntax

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

Parameters

component
The System.ComponentModel.IComponent object that contains the data source.
dataSource
The name of the data source to retrieve.

Returns

An object implementing either System.ComponentModel.IListSource or IEnumerable representing the selected data source, or null if the data source or the designer host 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