SPPersistedDependencyCollection<T> class

Represents a collection of persisted objects that depend on a common object.

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

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPPersistedDependencyCollection(Of T As SPPersistedObject) _
    Inherits SPPersistedObjectCollection(Of T)
'Usage
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

Remarks

Use the SPPersistedDependencyCollection<T> constructor to return a collection of persisted objects that depend on a specified object.

Use an indexer to return a single persisted object from the collection. For example, if the collection is assigned to a variable named myPersistedDependencies, use myPersistedDependencies[index] in C#, or myPersistedDependencies(index) in Visual Basic, where index is either the name or the GUID that identifies the persisted object 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

SPPersistedDependencyCollection<T> members

Microsoft.SharePoint.Administration namespace