EditorZoneBase.InvalidateEditorParts 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將與 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 用 方法來建立更新的集合。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應