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)

public interface ISharePointProjectOutputReferenceCollection : ISharePointCollection<ISharePointProjectOutputReference>, 
	INotifyCollectionChanged, INotifyPropertyChanged, IEnumerable<ISharePointProjectOutputReference>, IEnumerable

The ISharePointProjectOutputReferenceCollection type exposes the following members.

  NameDescription
Public propertyCountGets the number of items in the collection. (Inherited from ISharePointCollection<T>.)
Public propertyProjectItemGets a reference to the SharePoint project item.
Top

  NameDescription
Public methodAdd(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 methodAdd(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 methodAdd(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 methodClearClears the contents of the collection.
Public methodContainsGets whether the provided item is a member of this collection. (Inherited from ISharePointCollection<T>.)
Public methodCopyToCopies items from this collection into an array. (Inherited from ISharePointCollection<T>.)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISharePointProjectOutputReference>.)
Public methodRemoveRemoves 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

  NameDescription
Public eventCollectionChangedOccurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public eventPropertyChangedOccurs when a property value changes. (Inherited from INotifyPropertyChanged.)
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft