Share via


BaseDataListDesigner.GetTemplateContainerDataSource(String) Método

Definição

Cuidado

Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

Obtém a fonte de dados do contêiner do modelo.

public:
 override System::Collections::IEnumerable ^ GetTemplateContainerDataSource(System::String ^ templateName);
public override System.Collections.IEnumerable GetTemplateContainerDataSource (string templateName);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public override System.Collections.IEnumerable GetTemplateContainerDataSource (string templateName);
override this.GetTemplateContainerDataSource : string -> System.Collections.IEnumerable
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
override this.GetTemplateContainerDataSource : string -> System.Collections.IEnumerable
Public Overrides Function GetTemplateContainerDataSource (templateName As String) As IEnumerable

Parâmetros

templateName
String

Um String que especifica o nome do modelo para o qual obter a fonte de dados.

Retornos

Um objeto que implementa uma interface IEnumerable que contém uma propriedade DataSource de tempo de design.

Atributos

Comentários

O GetTemplateContainerDataSource método chama o GetResolvedSelectedDataSource método para construir uma fonte de dados do objeto especificado pelas DataSource propriedades e DataMember do controle associado derivado da BaseDataList classe .

Notas aos Chamadores

O GetTemplateContainerDataSource(String) método é obsoleto. Em vez disso, os chamadores devem usar o GetResolvedSelectedDataSource() método . O templateName parâmetro não é usado.

Aplica-se a

Confira também