ProxyWebPartManager.CreateControlCollection 方法
定义
重写基属性,以阻止 ProxyWebPartManager 控件包含其他控件。Overrides the base property to prevent the ProxyWebPartManager control from containing controls.
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。Always returns an EmptyControlCollection.
注解
CreateControlCollection方法会重写基方法,以防止 ProxyWebPartManager 控件包含和返回控件的集合。The CreateControlCollection method overrides the base method to prevent the ProxyWebPartManager control from containing and returning collections of controls. 其唯一目的是使静态连接可以在使用母版页的应用程序内的内容页中声明。Its only purpose is to enable static connections to be declared in content pages within an application that uses master pages.