TemplateRedirectionPage Class
Collapse the table of content
Expand the table of content

TemplateRedirectionPage Class

Represents the page class used for all Publishing pages that use the page layout rendering model.


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

[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class TemplateRedirectionPage : PublishingCachablePage, 

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.

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