SPFeatureDefinitionCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPFeatureDefinition objects.

The SPFeatureDefinitionCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of objects in the collection. (Inherited from SPPersistedObjectCollection<T>.)
Public property IsEmpty Gets a Boolean value that indicates whether the collection contains any objects. (Inherited from SPPersistedObjectCollection<T>.)
Public property Item[Guid] Gets the Feature definition with the specified GUID from the collection.
Public property Item[String] Gets the Feature definition with the specified name from the collection.
Protected property Parent Gets the parent object that declares this collection. (Inherited from SPPersistedObjectCollection<T>.)

Top

Methods

  Name Description
Public method Add(T) Adds an object to the collection. (Inherited from SPPersistedChildCollection<T>.)
Public method Add(String, Guid) Adds the Feature definition with the specified manifest path and solution ID to the collection of Feature definitions.
Public method Add(String, Guid, Boolean) Adds the Feature definition with the specified manifest path and solution ID to the collection of Feature definitions, including a Boolean parameter that specifies whether to force reinstallation of the Feature definition.
Public method Ensure Adds an object to the collection and, if the object already exists, reinitializes it with the data of the existing object. (Inherited from SPPersistedChildCollection<T>.)
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. (Inherited from SPPersistedObjectCollection<T>.)
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. (Inherited from SPPersistedObjectCollection<T>.)
Public method GetValue<U>(Guid) Retrieves an object from the collection with the specified ID and type. (Inherited from SPPersistedObjectCollection<T>.)
Public method GetValue<U>(String) Retrieves an object from the collection with the specified name and type. (Inherited from SPPersistedObjectCollection<T>.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Guid) Removes the Feature definition with the specified GUID from the collection. (Overrides SPPersistedChildCollection<T>.Remove(Guid).)
Public method Remove(String) Removes the Feature definition with the specified relative manifest path from the collection.
Public method Remove(Guid, Boolean) Forces removal of the Feature definition with the specified GUID from the collection.
Public method Remove(String, Boolean) Forces removal of the Feature definition with the specified relative manifest path from the collection.
Public method ScanForFeatures Scans for new Features in the file system, and if new Features are present, adds them to the Feature definition collection.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from SPPersistedObjectCollection<T>.)

Top

See Also

Reference

SPFeatureDefinitionCollection Class

Microsoft.SharePoint.Administration Namespace