EditorZone.CreateEditorParts 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建以页面持久性格式在区域模板中声明的所有 EditorPart 控件。
protected:
override System::Web::UI::WebControls::WebParts::EditorPartCollection ^ CreateEditorParts();
protected override System.Web.UI.WebControls.WebParts.EditorPartCollection CreateEditorParts();
override this.CreateEditorParts : unit -> System.Web.UI.WebControls.WebParts.EditorPartCollection
Protected Overrides Function CreateEditorParts () As EditorPartCollection
返回
包含 EditorPartCollection 对区域模板中声明的所有 EditorPart 控件的引用。
例外
当前 EditorPart 控件没有 ID。
注解
该方法 CreateEditorParts 重写基方法,以仅 EditorPart 创建在区域模板中声明的控件。 必须以编程方式添加添加到该区域的任何其他 EditorPart 控件。 例如,可以通过在 IWebEditable 控件中 WebPart 实现接口来完成此操作。 然后,在重写 CreateEditorParts 的方法中,可以将自定义 EditorPart 控件的集合添加到区域。