DesignTimeData.GetDataMember Method

Gets the specified data member from the specified data source.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
static IEnumerable^ GetDataMember (
	IListSource^ dataSource, 
	String^ dataMember
)
public static IEnumerable GetDataMember (
	IListSource dataSource, 
	String dataMember
)
public static function GetDataMember (
	dataSource : IListSource, 
	dataMember : String
) : IEnumerable
Not applicable.

Parameters

dataSource

An IListSource that contains the data in which to find the member.

dataMember

The name of the data member to retrieve.

Return Value

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

Exception typeCondition

ArgumentNullException

dataSource is a null reference (Nothing in Visual Basic)

-or-

dataMember is a null reference (Nothing in Visual Basic).

This method searches the specified data source for the specified data member. If dataMember is a null reference (Nothing in Visual Basic), the first data member in the specified data source is returned.

Windows 98, Windows Server 2000 SP4, 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, 1.1, 1.0

Community Additions

ADD
Show: