SPFeatureCollection.Add method

Activates a feature by using a Feature definition to create a new SPFeature object and then add it to the collection.

Overload list

  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 Add(Guid, Int32, Boolean, SPFeatureDefinitionScope) Adds a Feature to the Collection.

Top

See also

Reference

SPFeatureCollection class

SPFeatureCollection members

Microsoft.SharePoint namespace