SPPersistedChildCollection<T> constructor (SPPersistedObject, Comparison<T>)

Initializes an instance of the SPPersistedChildCollection<T> class to create a collection of objects of a given type that are owned by the specified parent object and are compared by a specified delegate method.

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

Syntax

'Declaration
Protected Sub New ( _
    parent As SPPersistedObject, _
    comparison As Comparison(Of T) _
)
'Usage
Dim parent As SPPersistedObject
Dim comparison As Comparison(Of T)

Dim instance As New SPPersistedChildCollection(parent, _
    comparison)
protected SPPersistedChildCollection(
    SPPersistedObject parent,
    Comparison<T> comparison
)

Parameters

  • comparison
    Type: System.Comparison<T>

    The delegate method to compare two objects of the type contained in this collection. This method is used when the collection is sorted.

See also

Reference

SPPersistedChildCollection<T> class

SPPersistedChildCollection<T> members

SPPersistedChildCollection<T> overload

Microsoft.SharePoint.Administration namespace