TemplateRedirectionPage Class

Page class used for all Publishing pages that use the PageLayout rendering model. This class examines the page layout of the current item and transfers execution to the page layout. This page class is used as base page class for all Publishing pages that use a page layout. We recommend that you use this page class directly rather than author a publishing page, because the required ASPX markup for a publishing page is not publicly documented and may change in future releases. Authors should use the "Create Page" user interface (UI) to create new publishing pages. Developers should use the PublishingPageCollection.Add() methods to create a new page through the object model.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.Page
        Microsoft.SharePoint.WebPartPages.WebPartPage
          Microsoft.SharePoint.Publishing.PublishingCachablePage
            Microsoft.SharePoint.Publishing.TemplateRedirectionPage

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class TemplateRedirectionPage _
    Inherits PublishingCachablePage _
    Implements IHttpHandler
'Usage
Dim instance As TemplateRedirectionPage
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class TemplateRedirectionPage : PublishingCachablePage, 
    IHttpHandler

Remarks

This class can only be used in a page inside a document library and the page must have a valid ContentTypeId.PageLayout field.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

TemplateRedirectionPage Members

Microsoft.SharePoint.Publishing Namespace