TemplateStack.GetCurrentTemplate(HttpContextBase) TemplateStack.GetCurrentTemplate(HttpContextBase) TemplateStack.GetCurrentTemplate(HttpContextBase) Method

Definition

Returns the current template file from the specified HTTP context.

public static System.Web.WebPages.ITemplateFile GetCurrentTemplate (System.Web.HttpContextBase httpContext);
static member GetCurrentTemplate : System.Web.HttpContextBase -> System.Web.WebPages.ITemplateFile
Public Shared Function GetCurrentTemplate (httpContext As HttpContextBase) As ITemplateFile

Parameters

httpContext
HttpContextBase HttpContextBase HttpContextBase

The HTTP context that contains the stack that stores the template files.

Returns

The template file, removed from the top of the stack.

Applies to