Επεξεργασία

Κοινή χρήση μέσω


BaseDataListDesigner.GetTemplateContainerDataSource(String) Method

Definition

Caution

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

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

Parameters

templateName
String

A String that specifies the name of the template for which to get the data source.

Returns

An object that implements an IEnumerable interface containing a design-time DataSource property.

Attributes

Remarks

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.

Notes to Callers

The GetTemplateContainerDataSource(String) method is obsolete. Callers should use the GetResolvedSelectedDataSource() method instead. The templateName parameter is not used.

Applies to

See also