Partager via


ISharePointProjectOutputReferenceCollection 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 project output references belonging to a project item.

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

Syntax

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

The ISharePointProjectOutputReferenceCollection 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 ProjectItem Gets a reference to the SharePoint project item.

Top

Methods

  Name Description
Public method Add(Guid, DeploymentType) Adds an output reference to the project specified by projectId. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.
Public method Add(String, DeploymentType) Adds an output reference to the project. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.
Public method Add(ISharePointProject, DeploymentType) Adds an output reference to the project. The reference is added as a build dependency to the current project and included as a part of the SharePoint project item.
Public method Clear Clears the contents of the collection.
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<ISharePointProjectOutputReference>.)
Public method Remove Removes the specified project output reference from the collection. However, this method does not remove the project reference that was added by an Add method.

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

If you attempt to add a project output reference that has the same deployment properties as an existing reference, then no new output reference is added. Instead, the existing reference is returned.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace