XmlSiteMapProvider.RemoveProvider(String) 方法

定義

從目前提供者的階層架構,移除連結的子網站地圖提供者。Removes a linked child site map provider from the hierarchy for the current provider.

protected:
 virtual void RemoveProvider(System::String ^ providerName);
protected virtual void RemoveProvider (string providerName);
abstract member RemoveProvider : string -> unit
override this.RemoveProvider : string -> unit
Protected Overridable Sub RemoveProvider (providerName As String)

參數

providerName
String

目前已在 Providers 中註冊之其中一個 SiteMapProvider 物件的名稱。The name of one of the SiteMapProvider objects currently registered in the Providers.

例外狀況

無法解析 providerNameproviderName cannot be resolved.

providerName 不是目前網站地圖提供者的已註冊子提供者。providerName is not a registered child provider of the current site map provider.

providerNamenullproviderName is null.

備註

RemoveProvider方法 providerName 會從目前提供者的階層中移除,包括 AddProvider 目前提供者的網站地圖節點和移除的提供者之間的方法所建立的任何父子式關聯性。The RemoveProvider method removes providerName from the hierarchy for the current provider, including any parent/child relationships that are established by the AddProvider method between site map nodes of the current provider and the removed provider.

適用於

另請參閱