共用方式為


ISharePointProjectFeatureCollection 介面

SharePoint 專案中所定義之所有 SharePoint 功能的集合。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

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

ISharePointProjectFeatureCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得集合中的項目數目。 (繼承自 ISharePointCollection<T>)。
公用屬性 Item 取得具有指定資料夾路徑的 ISharePointProjectFeature 執行個體。
公用屬性 Project 與功能相關聯的 ISharePointProject

回頁首

方法

  名稱 說明
公用方法 Add() 加入新功能。
公用方法 Add(Boolean) 加入新功能。
公用方法 Add(String) 使用指定的功能名稱,新增功能。
公用方法 Add(String, Boolean) 使用指定的功能名稱,新增功能。
公用方法 Contains 取得提供的項目是否為這個集合的成員。 (繼承自 ISharePointCollection<T>)。
公用方法 CopyTo 將項目從這個集合複製至陣列。 (繼承自 ISharePointCollection<T>)。
公用方法 Find 取得具有指定 ID 的 ISharePointProjectFeature 執行個體。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<ISharePointProjectFeature>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。

回頁首

事件

  名稱 說明
公用事件 CollectionChanged 發生於集合變更時。 (繼承自 INotifyCollectionChanged)。
公用事件 PropertyChanged 發生於屬性值變更時。 (繼承自 INotifyPropertyChanged)。

回頁首

備註

在專案中定義的功能不一定不包含與專案相關聯的方案套件。 對於功能可以從與其他專案相關聯的套件來參考。

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間