共用方式為


ISharePointProjectFeatureCollection Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

A collection of all SharePoint features defined in the SharePoint project.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface ISharePointProjectFeatureCollection _
    Inherits ISharePointCollection(Of ISharePointProjectFeature), INotifyCollectionChanged, INotifyPropertyChanged,  _
    IEnumerable(Of ISharePointProjectFeature), IEnumerable
public interface ISharePointProjectFeatureCollection : ISharePointCollection<ISharePointProjectFeature>, 
    INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable<ISharePointProjectFeature>, IEnumerable

The ISharePointProjectFeatureCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items in the collection. (Inherited from ISharePointCollection<T>.)
Public property Item Gets an instance of ISharePointProjectFeature with the specified folder path.
Public property Project The ISharePointProject to which the features are associated.

Top

Methods

  Name Description
Public method Add() Adds a new feature.
Public method Add(Boolean) Adds a new feature.
Public method Add(String) Adds a new feature using the specified feature name.
Public method Add(String, Boolean) Adds a new feature using the specified feature name.
Public method Contains Gets whether the provided item is a member of this collection. (Inherited from ISharePointCollection<T>.)
Public method CopyTo Copies items from this collection into an array. (Inherited from ISharePointCollection<T>.)
Public method Find Gets an instance of an ISharePointProjectFeature with the specified ID.
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISharePointProjectFeature>.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

Remarks

Features defined in the project may or may not be included to the solution package associated with the project. Features can be referenced from packages associated with other projects.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace