共用方式為


IAssemblyCollection 介面

表示封裝內組件的集合。

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

語法

'宣告
Public Interface IAssemblyCollection _
    Inherits IList(Of IAssembly), ICollection(Of IAssembly),  _
    IEnumerable(Of IAssembly), IEnumerable
public interface IAssemblyCollection : IList<IAssembly>, 
    ICollection<IAssembly>, IEnumerable<IAssembly>, IEnumerable

IAssemblyCollection 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Count 取得在 ICollection<T> 中所包含的元素數。 (繼承自 ICollection<IAssembly>)。
公用屬性 IsReadOnly 取得值,這個值表示 ICollection<T> 是否為唯讀。 (繼承自 ICollection<IAssembly>)。
公用屬性 Item 取得或設定指定之索引處的項目。 (繼承自 IList<IAssembly>)。

回頁首

方法

  名稱 說明
公用方法 Add 將項目加入至 ICollection<T> 中。 (繼承自 ICollection<IAssembly>)。
公用方法 AddAssembly 將新組件加入集合中。
公用方法 AddCustomAssembly 將新自訂組件加入集合中。
公用方法 AddProjectOutputAssembly 將新專案輸出組件加入至集合中。
公用方法 Clear 將所有項目從 ICollection<T> 移除。 (繼承自 ICollection<IAssembly>)。
公用方法 Contains 判斷 ICollection<T> 是否包含特定值。 (繼承自 ICollection<IAssembly>)。
公用方法 CopyTo 從特定的 Array 索引開始,複製 ICollection<T> 項目至 Array。 (繼承自 ICollection<IAssembly>)。
公用方法 GetEnumerator() 傳回可逐一查看集合的列舉程式。 (繼承自 IEnumerable<IAssembly>)。
公用方法 GetEnumerator() 傳回會逐一查看集合的列舉程式。 (繼承自 IEnumerable)。
公用方法 IndexOf 判斷 IList<T> 中特定項目的索引。 (繼承自 IList<IAssembly>)。
公用方法 Insert 將項目插入位於指定索引的 IList<T>。 (繼承自 IList<IAssembly>)。
公用方法 Remove ICollection<T> 移除特定物件之第一個符合的元素。 (繼承自 ICollection<IAssembly>)。
公用方法 RemoveAt 移除指定之索引處的 IList<T> 項目。 (繼承自 IList<IAssembly>)。

回頁首

請參閱

參考

Microsoft.VisualStudio.SharePoint.Packages 命名空間