Substitution.CreateControlCollection 方法

定义

返回一个 EmptyControlCollection 对象,指示 Substitution 控件不支持子控件。

protected:
 override System::Web::UI::ControlCollection ^ CreateControlCollection();
protected override System.Web.UI.ControlCollection CreateControlCollection();
override this.CreateControlCollection : unit -> System.Web.UI.ControlCollection
Protected Overrides Function CreateControlCollection () As ControlCollection

返回

一个 EmptyControlCollection,指示控件不支持子控件。

注解

该方法 CreateControlCollection 通常用于创建对象 ControlCollection 来存储控件的子控件。 控件方法CreateControlCollectionSubstitution实现始终返回对象EmptyControlCollection,以指示Substitution控件不支持子控件。

继承者说明

扩展 Substitution 控件时,可以重写 CreateControlCollection() 派生类中的方法以支持子控件。

适用于

另请参阅