Bagikan melalui


IMappedFolderCollection Interface

Represents a collection of mapped folders in a SharePoint project.

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

Syntax

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

The IMappedFolderCollection 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 Project Gets the SharePoint project that is associated with this mapped folder collection.

Top

Methods

  Name Description
Public method Add(String) Adds a mapped folder with the specified deployment path to the current SharePoint project, and also adds the mapped folder to the package in the project.
Public method Add(MappedFolderType) Adds a mapped folder with the specified type to the current SharePoint project, and also adds the mapped folder to the package in the project.
Public method Add(String, Boolean) Adds a mapped folder with the specified deployment path to the current SharePoint project.
Public method Add(MappedFolderType, Boolean) Adds a mapped folder with the specified type to the current SharePoint 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 GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IMappedFolder>.)

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

Remarks

Mapped folders are folders in a SharePoint project that correspond to the physical location of certain files in the SharePoint Server installation. For more information, see How to: Add and Remove Mapped Folders.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace