SiteMapResolveEventArgs.Context 屬性

定義

取得所要求之節點表示的網頁要求內容。

public:
 property System::Web::HttpContext ^ Context { System::Web::HttpContext ^ get(); };
public System.Web.HttpContext Context { get; }
member this.Context : System.Web.HttpContext
Public ReadOnly Property Context As HttpContext

屬性值

HttpContext

如果已指定,則為 HttpContext,否則為 null

備註

事件訂閱者可以使用 HttpContextSiteMapProvider 物件動態建立 SiteMapNode 物件,並擷取所要求頁面的相關資訊,例如要求的 URL 以及使用者資訊。

適用於

另請參閱