ListView.InstantiateEmptyDataTemplate(Control) 方法

定义

通过使用 Control 模板中包含的子控件,填充指定的 EmptyDataTemplate 对象。Populates the specified Control object by using the child controls that are contained in the EmptyDataTemplate template.

protected:
 virtual void InstantiateEmptyDataTemplate(System::Web::UI::Control ^ container);
protected virtual void InstantiateEmptyDataTemplate (System.Web.UI.Control container);
abstract member InstantiateEmptyDataTemplate : System.Web.UI.Control -> unit
override this.InstantiateEmptyDataTemplate : System.Web.UI.Control -> unit
Protected Overridable Sub InstantiateEmptyDataTemplate (container As Control)

参数

container
Control

一个容器,用于存储 EmptyDataTemplate 模板中的子控件。The container that is used to store the child controls in the EmptyDataTemplate template.

注解

此方法用于 Control 通过使用模板中包含的子控件填充指定的对象 EmptyDataTemplateThis method is used to populate the specified Control object by using the child controls that are contained in the EmptyDataTemplate template.

备注

此方法主要由控件开发人员用来扩展 ListView 控件。This method is primarily used by control developers to extend the ListView control.

适用于

另请参阅