SPPersistedObjectCollection<T> class
SharePoint 2013
Provides a base class for collections that manage SPPersistedObject objects.
System.Object
Microsoft.SharePoint.Administration.SPPersistedObjectCollection<T>
Microsoft.SharePoint.Administration.SPPersistedChildCollection<T>
Microsoft.SharePoint.Administration.SPPersistedDependencyCollection<T>
Microsoft.SharePoint.Administration.SPPersistedObjectCollection<T>
Microsoft.SharePoint.Administration.SPPersistedChildCollection<T>
Microsoft.SharePoint.Administration.SPPersistedDependencyCollection<T>
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] public abstract class SPPersistedObjectCollection<T> : IEnumerable<T>, IEnumerable where T : SPPersistedObject
Type parameters
- T
The type of object contained in the collection.
Use an indexer to return a single persisted object from the collection. For example, if the collection is assigned to a variable named myPersistedObjects, use myPersistedObjects[index] in C#, or myPersistedObjects(index) in Visual Basic, where index is either the name or the GUID that identifies the persisted object in the collection.