共用方式為


SPPersistedTypeCollection<T> class

代表所有SPPersistedObject物件會儲存在設定資料庫,並找出所指定之類型或衍生自指定類型的集合。

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)

Syntax

'宣告
<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
'用途
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
    包含在集合中的物件類型。

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.

請參閱

參照

SPPersistedTypeCollection<T> members

Microsoft.SharePoint.Administration namespace