ISharePointProjectOutputReferenceCollection 介面

代表屬於專案項目之專案輸出參考的集合。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

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

ISharePointProjectOutputReferenceCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得集合中的項目數目。 (繼承自 ISharePointCollection<T>)。
公用屬性 ProjectItem 取得 SharePoint 專案項目的參考。

回頁首

方法

  名稱 說明
公用方法 Add(Guid, DeploymentType) 將輸出參考加入至 projectId 所指定的專案。此參考會當做目前專案的組建相依性加入,並併入為 SharePoint 專案項目的一部分。
公用方法 Add(String, DeploymentType) 將輸出參考加入至專案。此參考會當做目前專案的組建相依性加入,並併入為 SharePoint 專案項目的一部分。
公用方法 Add(ISharePointProject, DeploymentType) 將輸出參考加入至專案。此參考會當做目前專案的組建相依性加入,並併入為 SharePoint 專案項目的一部分。
公用方法 Clear 清除集合的內容。
公用方法 Contains 取得提供的項目是否為這個集合的成員。 (繼承自 ISharePointCollection<T>)。
公用方法 CopyTo 將項目從這個集合複製至陣列。 (繼承自 ISharePointCollection<T>)。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<ISharePointProjectOutputReference>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。
公用方法 Remove 從集合中移除指定的專案輸出參考。不過,此方法不會移除由 Add 方法加入的專案參考。

回頁首

事件

  名稱 說明
公用事件 CollectionChanged 發生於集合變更時。 (繼承自 INotifyCollectionChanged)。
公用事件 PropertyChanged 發生於屬性值變更時。 (繼承自 INotifyPropertyChanged)。

回頁首

備註

如果您嘗試加入的專案輸出參考,與現有的參考具有相同的部署屬性,則不會加入任何新的輸出參考。 而是會傳回現有的參考。

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間