ISharePointProjectOutputReferenceCollection Interface
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 | |
---|---|---|
Count | Gets the number of items in the collection. (Inherited from ISharePointCollection<T>.) | |
ProjectItem | Gets a reference to the SharePoint project item. |
Top
Methods
Name | Description | |
---|---|---|
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. | |
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. | |
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. | |
Clear | Clears the contents of the collection. | |
Contains | Gets whether the provided item is a member of this collection. (Inherited from ISharePointCollection<T>.) | |
CopyTo | Copies items from this collection into an array. (Inherited from ISharePointCollection<T>.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISharePointProjectOutputReference>.) | |
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 | |
---|---|---|
CollectionChanged | Occurs when the collection changes. (Inherited from INotifyCollectionChanged.) | |
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.