SPPersistedTypeCollection<T> Class
Represents a collection of all SPPersistedObject objects that are stored in the configuration database and that are of a specified type or derive from a specified type.
Inheritance Hierarchy
System.Object
Microsoft.SharePoint.Administration.SPPersistedTypeCollection
Microsoft.SharePoint.Administration.SPPersistedTypeCollection<T>
Microsoft.SharePoint.Administration.SPEncryptedStringCollection
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPPersistedTypeCollection(Of T As {New, SPPersistedObject}) _
Inherits SPPersistedTypeCollection _
Implements IEnumerable(Of T), IEnumerable
'Usage
Dim instance As SPPersistedTypeCollection(Of T)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPPersistedTypeCollection<T> : SPPersistedTypeCollection,
IEnumerable<T>, IEnumerable
where T : new(), SPPersistedObject
Type Parameters
- T
The type of object contained in the 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.