다음을 통해 공유


PageLayout Class

Represents a Microsoft SharePoint Server 2010 page layout. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Publishing.PageLayout

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class PageLayout
'Usage
Dim instance As PageLayout
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class PageLayout

Remarks

The PageLayout class provides publishing-related behavior for page layouts within a site collection's master page gallery, where it is stored as a document list item. It defines the common look and feel for how PublishingPage objects appear in the site.

The PageLayout class wraps the SPListItem class. It also exposes the underlying SPListItem directly through the ListItem property so that additional SPListItem and File functionality can be accessed easily.

You can use the public constructor PageLayout(SPListItemlistItem) to create an instance of a PageLayout object. You can also instantiate a PageLayout object by retrieving it from a PageLayoutCollection collection.

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

PageLayout Members

Microsoft.SharePoint.Publishing Namespace

GetPageLayouts

GetPageLayouts

PageLayouts

GetAvailablePageLayouts

GetAvailablePageLayouts

SetAvailablePageLayouts