BaseDataListDesigner.GetTemplateContainerDataSource(String) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Atenção
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 contentor do template.
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
Devoluções
Um objeto que implementa uma IEnumerable interface contendo uma propriedade de tempo DataSource de design.
- Atributos
Observações
O GetTemplateContainerDataSource método chama o GetResolvedSelectedDataSource método para construir uma fonte de dados a partir do objeto que é especificada pelas DataSource propriedades e DataMember do controlo associado derivadas da BaseDataList classe.
Notas para Chamadores
O GetTemplateContainerDataSource(String) método está obsoleto. Os ouvintes devem usar o GetResolvedSelectedDataSource() método em vez disso. O templateName parâmetro não é utilizado.