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 命名空间