表示项的只读集合。 它不会提供用于修改集合内容的公共方法。 它在 SharePoint 项目模型中用作许多集合的基类型。 这些集合通常在内部更改,并且可以使用事件监视这些更改。
命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
Public Interface ISharePointCollection(Of T) _
    Inherits INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable(Of T),  _
    IEnumerable
public interface ISharePointCollection<T> : INotifyCollectionChanged, 
    INotifyPropertyChanged, IEnumerable<T>, IEnumerable
类型参数
- T
 项参数的类型。
ISharePointCollection<T> 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | Count | 获取集合中项的数目。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Contains | 获取提供的项是否为此集合的成员。 | 
| .gif) | CopyTo | 将此集合中的项复制到数组中。 | 
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<T>。) | 
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) | 
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | CollectionChanged | 当集合更改时发生。 (继承自 INotifyCollectionChanged。) | 
| .gif) | PropertyChanged | 在更改属性值时发生。 (继承自 INotifyPropertyChanged。) | 
页首