Partilhar via


TemplateRedirectionPage Class

Represents the page class used for all Publishing pages that use the page layout rendering 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 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 instead of authoring a publishing page. Authors should use the Create Page user interface (UI) to create publishing pages. Developers should use the Add() methods to create a new page through the object model.This class can be used only 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