다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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