Share via


TemplateStack.Pop(HttpContextBase) Method

Definition

Removes and returns the template file that is at the top of the stack in the specified HTTP context.

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

Parameters

httpContext
HttpContextBase

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

Returns

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

Exceptions

httpContext is null.

Applies to