Compartilhar via


SPFeatureCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPFeature objects.

The SPFeatureCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of Features in the collection.
Public property Item Gets the Feature with the specified GUID from the collection.

Top

Methods

  Name Description
Public method Add(Guid) Activates a Feature by using the Feature definition with the specified ID to create a new SPFeature object and then add it to the collection.
Public method Add(Guid, Boolean) Activates a Feature by using the Feature definition with the specified ID to create a new SPFeature object and then add it to the collection, optionally forcing activation even if there are errors.
Public method Add(Guid, Boolean, SPFeatureDefinitionScope) Activates a feature by using the feature definition with the specified ID at the specified scope to create a new SPFeature object and then add it to the collection, optionally forcing activation even if there are errors.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Guid) Removes the Feature with the specified ID from the collection.
Public method Remove(Guid, Boolean) Removes the Feature with the specified GUID from the collection and optionally ignores errors.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an Array, starting at a specified Array index.
Explicit interface implemetationPrivate method IEnumerable<SPFeature>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that can be used to synchronize access to the collection.

Top

See Also

Reference

SPFeatureCollection Class

Microsoft.SharePoint Namespace