表示 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)。 |
回頁首
.gif)
.gif)
.gif)