Прочитај на енглеском Уреди

Делите путем


DesignTimeData.GetDataMember(IListSource, String) Method

Definition

Gets the specified data member from the specified data source.

C#
public static System.Collections.IEnumerable GetDataMember(System.ComponentModel.IListSource dataSource, string dataMember);

Parameters

dataSource
IListSource

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

dataMember
String

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.

Exceptions

dataSource is null

-or-

dataMember is null.

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.

Applies to

Производ Верзије
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also