Share via


SPPersistedObjectCollection<T> members

Provides a base class for collections that manage SPPersistedObject objects.

The SPPersistedObjectCollection<T> type exposes the following members.

Constructors

  Name Description
Protected method SPPersistedObjectCollection<T>(SPPersistedObject) Initializes a new instance of the SPPersistedObjectCollection<T> class based on the specified object.
Protected method SPPersistedObjectCollection<T>(SPPersistedObject, Comparison<T>) Creates a sorted collection of objects with a given type which are owned by the collection's parent.

Top

Properties

  Name Description
Public property Count Gets the number of objects in the collection.
Public property IsEmpty Gets a Boolean value that indicates whether the collection contains any objects.
Public property Item[Guid] Gets the persisted object in the collection based on the specified GUID.
Public property Item[String] Gets the persisted object in the collection based on the specified name.
Protected property Parent Gets the parent object that declares this collection.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValue<U>() Retrieves an object from the collection with the specified type and the default name.
Public method GetValue<U>(Guid) Retrieves an object from the collection with the specified ID and type.
Public method GetValue<U>(String) Retrieves an object from the collection with the specified name and type.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator over all items in this list.

Top

See also

Reference

SPPersistedObjectCollection<T> class

Microsoft.SharePoint.Administration namespace