SiteMapResolveEventArgs.Context 属性
定义
获取被请求的节点所表示的页请求的上下文。Gets the context of the page request that the requested node represents.
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;否则为 null。An HttpContext, if one is specified; otherwise, null.
注解
事件订阅者可以使用 HttpContext 和 SiteMapProvider 对象来动态创建 SiteMapNode 对象并检索有关请求的页面的信息,例如请求的 URL 和用户信息。Event subscribers can use the HttpContext and SiteMapProvider objects to dynamically create a SiteMapNode object and retrieve information about the requested page, such as the requested URL, as well as user information.