共用方式為


SPPersistedDependencyCollection<T> class

代表一般的物件而定的持續性物件的集合。

Inheritance hierarchy

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

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

Syntax

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

Type parameters

  • T

備註

使用SPPersistedDependencyCollection<T>建構函式可傳回依存於指定之物件的持續性物件的集合。

若要從集合中傳回單一的持續性的物件使用索引器。例如,如果集合都會被指派至變數myPersistedDependencies,使用myPersistedDependencies[index]以 C# 或 Visual Basic 中的myPersistedDependencies(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.

請參閱

參照

SPPersistedDependencyCollection<T> members

Microsoft.SharePoint.Administration namespace