BaseDataListDesigner.GetTemplateContainerDataSource(String) メソッド

定義

注意事項

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(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

パラメーター

templateName
String

データ ソースを取得するテンプレートの名前を指定する String

返品

デザイン時のIEnumerable プロパティを含むDataSource インターフェイスを実装するオブジェクト。

属性

注釈

GetTemplateContainerDataSource メソッドは、GetResolvedSelectedDataSource メソッドを呼び出して、クラスから派生した関連付けられたコントロールのDataSourceプロパティとDataMemberプロパティで指定されたオブジェクトからデータ ソースBaseDataList構築します。

注意 (呼び出し元)

GetTemplateContainerDataSource(String)メソッドは廃止されています。 呼び出し元は、代わりに GetResolvedSelectedDataSource() メソッドを使用する必要があります。 templateName パラメーターは使用されません。

適用対象

こちらもご覧ください