SharePoint 项目中定义的所有 SharePoint 功能的集合。
命名空间: Microsoft.VisualStudio.SharePoint
程序集: Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
Public Interface ISharePointProjectFeatureCollection _
Inherits ISharePointCollection(Of ISharePointProjectFeature), INotifyCollectionChanged, INotifyPropertyChanged, _
IEnumerable(Of ISharePointProjectFeature), IEnumerable
public interface ISharePointProjectFeatureCollection : ISharePointCollection<ISharePointProjectFeature>,
INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable<ISharePointProjectFeature>, IEnumerable
ISharePointProjectFeatureCollection 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
Count | 获取集合中项的数目。 (继承自 ISharePointCollection<T>。) |
![]() |
Item | 使用指定的文件夹路径获取 ISharePointProjectFeature 的实例。 |
![]() |
Project | 与功能关联的 ISharePointProject。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Add() | 添加新功能。 |
![]() |
Add(Boolean) | 添加新功能。 |
![]() |
Add(String) | 使用指定的功能名称添加新功能。 |
![]() |
Add(String, Boolean) | 使用指定的功能名称添加新功能。 |
![]() |
Contains | 获取提供的项是否为此集合的成员。 (继承自 ISharePointCollection<T>。) |
![]() |
CopyTo | 将此集合中的项复制到数组中。 (继承自 ISharePointCollection<T>。) |
![]() |
Find | 使用指定的 ID 获取 ISharePointProjectFeature 的实例。 |
![]() |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<ISharePointProjectFeature>。) |
![]() |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
CollectionChanged | 当集合更改时发生。 (继承自 INotifyCollectionChanged。) |
![]() |
PropertyChanged | 在更改属性值时发生。 (继承自 INotifyPropertyChanged。) |
页首
备注
在项目中定义的功能不一定会包括在与项目关联的解决方案包中。 可以从其他项目所关联的包引用功能。