共用方式為


SPPersistedObjectCollection<T> class

提供基底類別的管理SPPersistedObject物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPPersistedObjectCollection<T>
    Microsoft.SharePoint.Administration.SPPersistedChildCollection<T>
    Microsoft.SharePoint.Administration.SPPersistedDependencyCollection<T>

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

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPPersistedObjectCollection(Of T As SPPersistedObject) _
    Implements IEnumerable(Of T), IEnumerable
'用途
Dim instance As SPPersistedObjectCollection(Of T)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SPPersistedObjectCollection<T> : IEnumerable<T>, 
    IEnumerable
where T : SPPersistedObject

Type parameters

  • T
    包含在集合中的物件類型。

備註

若要從集合中傳回單一的持續性的物件使用索引器。例如,如果集合都會被指派至變數myPersistedObjects,使用myPersistedObjects[index]以 C# 或 Visual Basic 中的myPersistedObjects(index)index所在的名稱或 GUID 的識別集合中保存的物件。

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.

請參閱

參照

SPPersistedObjectCollection<T> members

Microsoft.SharePoint.Administration namespace