次の方法で共有


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
      Microsoft.SharePoint.Administration.SPServiceDsnObjectProviderCollection

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, 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.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, 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.

See also

Reference

SPPersistedTypeCollection<T> members

Microsoft.SharePoint.Administration namespace