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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPPersistedDependencyCollection(Of T As SPPersistedObject) _
Inherits SPPersistedObjectCollection(Of T)
'Usage
Dim instance As SPPersistedDependencyCollection(Of T)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.