Sdílet prostřednictvím


BaseDataListDesigner.GetTemplateContainerDataSource(String) Metoda

Definice

Upozornění

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

Získá zdroj dat kontejneru šablony.

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

Parametry

templateName
String

A String , který určuje název šablony, pro kterou chcete získat zdroj dat.

Návraty

Objekt, který implementuje IEnumerable rozhraní obsahující vlastnost návrhu DataSource .

Atributy

Poznámky

Metoda GetTemplateContainerDataSource volá metodu GetResolvedSelectedDataSource k vytvoření zdroje dat z objektu, který je určen vlastnostmi DataSource a DataMember přidruženého ovládacího prvku odvozeného z BaseDataList třídy .

Poznámky pro volající

Metoda GetTemplateContainerDataSource(String) je zastaralá. Volající by místo toho měli použít metodu GetResolvedSelectedDataSource() . Parametr templateName se nepoužívá.

Platí pro

Viz také