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 Server 安装中的某些文件的物理位置相对应。 有关更多信息,请参见 如何:添加和移除映射文件夹

请参见

参考

Microsoft.VisualStudio.SharePoint 命名空间