SiteMapProvider.ResolveSiteMapNode(HttpContext) 方法

定義

引發 SiteMapResolve 事件。Raises the SiteMapResolve event.

protected:
 System::Web::SiteMapNode ^ ResolveSiteMapNode(System::Web::HttpContext ^ context);
protected System.Web.SiteMapNode ResolveSiteMapNode (System.Web.HttpContext context);
member this.ResolveSiteMapNode : System.Web.HttpContext -> System.Web.SiteMapNode
Protected Function ResolveSiteMapNode (context As HttpContext) As SiteMapNode

參數

context
HttpContext

目前有網站導覽的 HttpContextThe HttpContext for which the site map currently exists.

傳回

SiteMapNode

已註冊為處理事件之事件處理常式委派所提供的 SiteMapNode,如果有一個以上的委派註冊為處理事件,則為委派鏈結中最後一個委派的傳回值,否則為 nullA SiteMapNode provided by the event handler delegate that is registered to handle the event or, if more than one delegate is registered to handle the event, the return value of the last delegate in the delegate chain; otherwise, null.

備註

context參數和呼叫方法的提供者參考 ResolveSiteMapNode 會傳遞給任何相關物件的函式 SiteMapResolveEventArgsThe context parameter and a reference to the provider that called the ResolveSiteMapNode method are passed to the constructor of any associated SiteMapResolveEventArgs object.

適用於

另請參閱