System.Web.UI.Design.DesignTimeData.GetDataMember Method

Gets the specified data member from the specified data source.

Syntax

public static IEnumerable GetDataMember (System.ComponentModel.IListSource dataSource, string dataMember)

Parameters

dataSource
An System.ComponentModel.IListSource that contains the data in which to find the member.
dataMember
The name of the data member to retrieve.

Returns

An object implementing IEnumerable containing the specified data member from the specified data source, if it exists.

Remarks

This method searches the specified data source for the specified data member. If dataMember is null, the first data member in the specified data source is returned.

Requirements

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