GenericWebPart.CreateEditorParts 메서드

정의

편집 모드에서 EditorPart 컨트롤의 자식 컨트롤을 편집하는 데 사용할 수 있는 사용자 지정 GenericWebPart 컨트롤의 컬렉션을 반환합니다.

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

반환

EditorPartCollection

서버 컨트롤에 연결된 사용자 지정 EditorPartCollection 컨트롤을 포함하는 EditorPart입니다.

설명

CreateEditorParts 컨트롤이 편집 표시 모드로 전환되면 메서드가 호출됩니다. 컨트롤의 경우 컨트롤 자체가 아니라 편집 중인 자식 컨트롤이므로 이 메서드는 클래스에서 WebPart 상속된 기본 메서드를 GenericWebPart 재정의 GenericWebPart 합니다. 메서드는 CreateEditorParts 자식 컨트롤을 인터페이스로 IWebEditable 캐스팅하여 컨트롤을 편집할 수 있도록 합니다.

이 재정의된 메서드를 사용하면 ASP.NET 서버 컨트롤 및 사용자 지정 서버 컨트롤을 포함하여 클래스에서 WebPart 파생되지 않는 서버 컨트롤을 일반 WebPart 컨트롤로 편집할 수 있습니다.

적용 대상

추가 정보