ISharePointProjectFeatureCollection 接口

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

页首

备注

在项目中定义的功能不一定会包括在与项目关联的解决方案包中。 可以从其他项目所关联的包引用功能。

请参见

参考

Microsoft.VisualStudio.SharePoint 命名空间