Export (0) Print
Expand All

PublishingWeb.GetAvailablePageLayouts method (SPContentTypeId)

Returns the PageLayout objects available for creating PublishingPage objects within this PublishingWeb object, filtered by an associated SPContentTypeId object.

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

public PageLayout[] GetAvailablePageLayouts(
	SPContentTypeId associatedContentTypeId
)

Parameters

associatedContentTypeId
Type: Microsoft.SharePoint.SPContentTypeId

The associated SPContentTypeId by which to filter the PageLayout objects.

Return value

Type: []
An array of PageLayout objects available for creating PublishingPage objects within this PublishingWeb, filtered by an associated content type.

This method returns a subset of the layouts returned from GetAvailablePageLayouts(SPContentTypeId), filtered by the AssociatedContentType property ID.

After calling this method, you should call the Update method to save changes.

Community Additions

ADD
Show:
© 2014 Microsoft