Condividi tramite


ISharePointCollection<T> Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a read-only collection of items. It provides no public methods to modify content of the collection. It is used as a base type for a number of collections in SharePoint project model. These collections are typically changed internally and events can be used to monitor for these changes.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface ISharePointCollection(Of T) _
    Inherits INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable(Of T),  _
    IEnumerable
public interface ISharePointCollection<T> : INotifyCollectionChanged, 
    INotifyPropertyChanged, IEnumerable<T>, IEnumerable

Type Parameters

  • T
    The type of the item parameters.

The ISharePointCollection<T> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items in the collection.

Top

Methods

  Name Description
Public method Contains Gets whether the provided item is a member of this collection.
Public method CopyTo Copies items from this collection into an array.
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<T>.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace