共用方式為


ISharePointProjectItemFileCollection 介面

表示 SharePoint 專案項目中檔案的集合。

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

語法

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

ISharePointProjectItemFileCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得集合中的項目數目。 (繼承自 ISharePointCollection<T>)。
公用屬性 Item 依檔名取得 SharePoint 專案項目檔案。
公用屬性 ProjectItem 取得擁有這個 ISharePointProjectItemFileCollection 執行個體的 SharePoint 專案項目。

回頁首

方法

  名稱 說明
公用方法 AddFromFile 將指定的檔案加入至專案項目檔案集合。
公用方法 AddFromFileCopy(String) 將新的檔案加入為所指定檔案的複本。這個檔案隨即加入至 SharePoint 專案項目資料夾。
公用方法 AddFromFileCopy(String, String) 將指定檔案的複本做為專案項目檔案加入至指定的子目錄。這個檔案隨即加入至 SharePoint 專案項目資料夾。
公用方法 Contains 取得提供的項目是否為這個集合的成員。 (繼承自 ISharePointCollection<T>)。
公用方法 CopyTo 將項目從這個集合複製至陣列。 (繼承自 ISharePointCollection<T>)。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<ISharePointProjectItemFile>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。

回頁首

事件

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

回頁首

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間