EditorZoneBase.InvalidateEditorParts 方法

定義

將與 EditorPart 區域相關聯的 EditorZoneBase 控制項集合設為 null,會導致呼叫 CreateEditorParts() 方法重新建立集合。

protected:
 void InvalidateEditorParts();
protected void InvalidateEditorParts ();
member this.InvalidateEditorParts : unit -> unit
Protected Sub InvalidateEditorParts ()

備註

InvalidateEditorParts如果與區域相關聯的 EditorZoneBase 控制項清單因某些原因而變更,而且衍生類別需要取得更新的 EditorPart 控制項清單 EditorPart ,則可以由衍生類別呼叫方法。 衍生類別應該呼叫 InvalidateEditorParts ,將目前的集合設定為 null 。 下次存取集合時 EditorParts ,Web 元件控制項集會自動叫 CreateEditorParts 用 方法來建立更新的集合。

適用於

另請參閱