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.Gets the data source of the template's container.
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.A String that specifies the name of the template for which to get the data source.
Retornos
Um objeto que implementa uma interface IEnumerable que contém uma propriedade DataSource de tempo de design.An object that implements an IEnumerable interface containing a design-time DataSource property.
- Atributos
Comentários
O GetTemplateContainerDataSource método chama o GetResolvedSelectedDataSource método para construir uma fonte de dados do objeto que é especificado pelas DataSource Propriedades e DataMember do controle associado derivado da BaseDataList classe.The GetTemplateContainerDataSource method calls the GetResolvedSelectedDataSource method to construct a data source from the object that is specified by the DataSource and DataMember properties of the associated control derived from BaseDataList class.
Notas aos Chamadores
O GetTemplateContainerDataSource(String) método está obsoleto.The GetTemplateContainerDataSource(String) method is obsolete. Os chamadores devem usar o GetResolvedSelectedDataSource() método.Callers should use the GetResolvedSelectedDataSource() method instead. O templateName parâmetro não é usado.The templateName parameter is not used.