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。) |
页首