SiteMapProvider.SiteMapResolve 事件

定義

呼叫 CurrentNode 屬性時發生。Occurs when the CurrentNode property is called.

public:
 event System::Web::SiteMapResolveEventHandler ^ SiteMapResolve;
public event System.Web.SiteMapResolveEventHandler SiteMapResolve;
member this.SiteMapResolve : System.Web.SiteMapResolveEventHandler 
Public Custom Event SiteMapResolve As SiteMapResolveEventHandler 
Public Event SiteMapResolve As SiteMapResolveEventHandler 

事件類型

SiteMapResolveEventHandler

備註

您可以藉 SiteMapNode 由訂閱事件來建立目前要求之頁面的標記法,而不需要執行自訂網站地圖提供者 SiteMapResolveYou can create a SiteMapNode representation of the currently requested page without implementing a custom site map provider by subscribing to the SiteMapResolve event. 訂閱者附加 SiteMapResolveEventHandler 物件,以在呼叫屬性時接收通知 CurrentNode ,而且可以傳回自訂 SiteMapNode 物件,而不是屬性傳回的預設值 CurrentNodeSubscribers attach a SiteMapResolveEventHandler object to receive notification when the CurrentNode property is called and can return a custom SiteMapNode object instead of the default one that is returned by the CurrentNode property.

如需如何處理事件的詳細資訊,請參閱 處理和引發事件For more information about how to handle events, see Handling and Raising Events.

適用於

另請參閱