GenericWebPart.CreateEditorParts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a collection of custom EditorPart controls that can be used to edit the child control of a GenericWebPart control when it is in edit mode.
public:
override System::Web::UI::WebControls::WebParts::EditorPartCollection ^ CreateEditorParts();
public override System.Web.UI.WebControls.WebParts.EditorPartCollection CreateEditorParts ();
override this.CreateEditorParts : unit -> System.Web.UI.WebControls.WebParts.EditorPartCollection
Public Overrides Function CreateEditorParts () As EditorPartCollection
Returns
An EditorPartCollection that contains custom EditorPart controls associated with a server control.
Remarks
The CreateEditorParts method is called when a control enters edit display mode. This method overrides the base method inherited from the WebPart class because, in the case of a GenericWebPart control, it is the child control that is being edited, not the GenericWebPart control itself. The CreateEditorParts method casts the child control to the IWebEditable interface, which enables the control to be edited.
This overridden method is what enables server controls that do not derive from the WebPart class--including ASP.NET server controls, and custom server controls--to be edited as normal WebPart controls.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기