PageLayoutCollection classe
Cria uma coleção de objetos PageLayout .
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Publishing.CollectionBase<PageLayout>
Microsoft.SharePoint.Publishing.QueryBasedCollection<PageLayout>
Microsoft.SharePoint.Publishing.PageLayoutCollection
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)
Sintaxe
'Declaração
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class PageLayoutCollection _
Inherits QueryBasedCollection(Of PageLayout)
'Uso
Dim instance As PageLayoutCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PageLayoutCollection : QueryBasedCollection<PageLayout>
Comentários
Essa coleção fornece integer, string e métodos de indexador GUID e oferece suporte à enumeração de foreach (For Each no Visual Basic) e uma propriedade Count que você pode usar quando explicitamente iterar através da coleção. O PageLayoutCollection pode ser recuperada dos métodos como GetPageLayouts, GetPageLayoutse PageLayouts.
Segurança de thread
Os membros públicos estática (Shared no Visual Basic) desse tipo são seguros para thread. Nenhum membro de instância pode ser garantido como seguro para thread.