XmlSiteMapProvider.Clear 方法

定義

移除子系和父代網站地圖節點及網站地圖提供者集合中的所有項目;XmlSiteMapProvider 物件會在內部追蹤其狀態時一併追蹤這些集合。Removes all elements in the collections of child and parent site map nodes and site map providers that the XmlSiteMapProvider object internally tracks as part of its state.

protected:
 override void Clear();
protected override void Clear ();
override this.Clear : unit -> unit
Protected Overrides Sub Clear ()

備註

XmlSiteMapProvider類別會覆寫繼承的 Clear 方法,以提供基本執行以外的其他狀態清除 StaticSiteMapProvider.Clear ,包括清除其子提供者追蹤和 RootNode 屬性追蹤機制。The XmlSiteMapProvider class overrides the inherited Clear method to provide additional state cleanup beyond the basic StaticSiteMapProvider.Clear implementation, including clearing its child provider tracking and the RootNode property tracking mechanisms.

適用於

另請參閱