ISharePointProjectItemCollection 介面

表示 SharePoint 專案項目的集合。

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

語法

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

ISharePointProjectItemCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得集合中的項目數目。 (繼承自 ISharePointCollection<T>)。
公用屬性 Item 依資料夾路徑,取得 ISharePointProjectItem 的執行個體。
公用屬性 Project 取得擁有這個集合的專案執行個體。

回頁首

方法

  名稱 說明
公用方法 Add(String, String) 建立 SharePoint 專案項目的新執行個體並將其加入。
公用方法 Add(String, String, Boolean) 建立並加入 SharePoint 專案項目的新執行個體。
公用方法 Add(String, String, String) 建立並加入 SharePoint 專案項目的新執行個體。
公用方法 Add(String, String, String, Boolean) 建立 SharePoint 專案項目並加入至專案中。
公用方法 Contains 取得提供的項目是否為這個集合的成員。 (繼承自 ISharePointCollection<T>)。
公用方法 CopyTo 將項目從這個集合複製至陣列。 (繼承自 ISharePointCollection<T>)。
公用方法 Find 依識別碼,尋找 ISharePointProjectItem 執行個體。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<ISharePointProjectItem>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。

回頁首

事件

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

回頁首

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間