Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TemplateStack Class

Represents a last-in-first-out (LIFO) collection of ITemplateFile template files.

System.Object
  System.Web.WebPages.TemplateStack

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)
public static class TemplateStack

The TemplateStack type exposes the following members.

  NameDescription
Public methodStatic memberGetCurrentTemplateReturns the current template file from the specified HTTP context.
Public methodStatic memberPopRemoves and returns the template file that is at the top of the stack in the specified HTTP context.
Public methodStatic memberPushInserts a template file at the top of the stack in the specified HTTP context.
Top

The WebPageExecutingBase class implements this interface, so most template files are of type WebPageExecutingBase or of a type that inherits from WebPageExecutingBase.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.