Compartir a través de


ISharePointProjectItemFileCollection 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 files in a SharePoint project item.

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

Syntax

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

The ISharePointProjectItemFileCollection 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 a SharePoint project item file by the file name.
Public property ProjectItem Gets the SharePoint project item owning this instance of the ISharePointProjectItemFileCollection.

Top

Methods

  Name Description
Public method AddFromFile Adds the specified file to the project item file collection.
Public method AddFromFileCopy(String) Adds a new file as a copy of the specified file. The file is added to the SharePoint project item folder.
Public method AddFromFileCopy(String, String) Adds a copy of the specified file to the specified subdirectory as a project item file. The file is added to the SharePoint project item folder.
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 GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISharePointProjectItemFile>.)

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