共用方式為


IMappedFolderCollection 介面

表示 SharePoint 專案中的對應資料夾的集合。

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

語法

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

IMappedFolderCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得集合中的項目數目。 (繼承自 ISharePointCollection<T>)。
公用屬性 Project 取得與此對應資料夾集合相關聯的 SharePoint 專案。

回頁首

方法

  名稱 說明
公用方法 Add(String) 將具有指定部署路徑的對應資料夾新增至目前的 SharePoint 專案,同時將對應資料夾新增至專案中的套件。
公用方法 Add(MappedFolderType) 將具有指定類型的對應資料夾新增至目前的 SharePoint 專案,同時將對應資料夾新增至專案中的套件。
公用方法 Add(String, Boolean) 將具有指定部署路徑的對應資料夾新增至目前的 SharePoint 專案。
公用方法 Add(MappedFolderType, Boolean) 將具有指定類型的對應資料夾新增至目前的 SharePoint 專案。
公用方法 Contains 取得提供的項目是否為這個集合的成員。 (繼承自 ISharePointCollection<T>)。
公用方法 CopyTo 將項目從這個集合複製至陣列。 (繼承自 ISharePointCollection<T>)。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<IMappedFolder>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。

回頁首

事件

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

回頁首

備註

對應資料夾是 SharePoint 專案中與 SharePoint 伺服器安裝中特定檔案實體位置對應的資料夾。 如需詳細資訊,請參閱HOW TO:新增與移除對應的資料夾

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間