DesignTimeData.GetDataMember(IListSource, String) Método
Definição
Obtém o membro de dados especificado da fonte de dados especificada.Gets the specified data member from the specified data source.
public:
static System::Collections::IEnumerable ^ GetDataMember(System::ComponentModel::IListSource ^ dataSource, System::String ^ dataMember);
public static System.Collections.IEnumerable GetDataMember (System.ComponentModel.IListSource dataSource, string dataMember);
static member GetDataMember : System.ComponentModel.IListSource * string -> System.Collections.IEnumerable
Public Shared Function GetDataMember (dataSource As IListSource, dataMember As String) As IEnumerable
Parâmetros
- dataSource
- IListSource
Um IListSource que contém os dados nos quais localizar o membro.An IListSource that contains the data in which to find the member.
- dataMember
- String
O nome do membro de dados a ser recuperado.The name of the data member to retrieve.
Retornos
Um objeto que implementa IEnumerable, contendo o membro de dados especificado da fonte de dados especificada, se ele existir.An object implementing IEnumerable containing the specified data member from the specified data source, if it exists.
Exceções
dataSource é nulldataSource is null
- ou --or-
dataMember é null.dataMember is null.
Comentários
Esse método pesquisa a fonte de dados especificada para o membro de dados especificado.This method searches the specified data source for the specified data member. Se dataMember for null , o primeiro membro de dados na fonte de dados especificada será retornado.If dataMember is null, the first data member in the specified data source is returned.