共用方式為


ISharePointProjectItemCollection Interface

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

Represents a collection of SharePoint project items.

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

Syntax

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

The ISharePointProjectItemCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items in the collection. (Inherited from ISharePointCollection<T>.)
Public property Item Gets an instance of a ISharePointProjectItem by its folder path.
Public property Project Gets the project instance owning this collection.

Top

Methods

  Name Description
Public method Add(String, String) Creates and adds a new instance of a SharePoint project item.
Public method Add(String, String, Boolean) Creates and adds a new instance of SharePoint project item.
Public method Add(String, String, String) Creates and adds a new instance of SharePoint project item.
Public method Add(String, String, String, Boolean) Creates and adds a SharePoint project item to the project.
Public method Contains Gets whether the provided item is a member of this collection. (Inherited from ISharePointCollection<T>.)
Public method CopyTo Copies items from this collection into an array. (Inherited from ISharePointCollection<T>.)
Public method Find Finds a ISharePointProjectItem instance by its ID.
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISharePointProjectItem>.)

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