Share via


GraphCategoryCollection 類別

繼承階層架構

Object
  Microsoft.VisualStudio.GraphModel.GraphCategoryCollection

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

語法

'宣告
Public Class GraphCategoryCollection _
    Implements ICollection(Of GraphCategory), IEnumerable(Of GraphCategory),  _
    IEnumerable
public class GraphCategoryCollection : ICollection<GraphCategory>, 
    IEnumerable<GraphCategory>, IEnumerable
public ref class GraphCategoryCollection : ICollection<GraphCategory^>, 
    IEnumerable<GraphCategory^>, IEnumerable
type GraphCategoryCollection =  
    class 
        interface ICollection<GraphCategory>
        interface IEnumerable<GraphCategory>
        interface IEnumerable 
    end
public class GraphCategoryCollection implements ICollection<GraphCategory>, IEnumerable<GraphCategory>, IEnumerable

GraphCategoryCollection 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 GraphCategoryCollection

回頁首

屬性

  名稱 描述
公用屬性 Count 取得集合中包含的項目數目。
公用屬性 IsReadOnly 取得值,表示集合是否為唯讀。
公用屬性 Schema

回頁首

方法

  名稱 描述
公用方法 Add 將項目加入至集合。
公用方法 AddNewCategory(String) 使用預設中繼資料建立者註冊新的 GraphCategory。
公用方法 AddNewCategory(String, Func<GraphMetadata>) 註冊新的 GraphCategory
公用方法 Clear 將所有項目從集合中移除。
公用方法 Contains 判斷集合是否包含特定值。
公用方法 Copy 複製集合的 GraphCategories 到另一個。這包括來源圖形到目的地圖形中的中繼資料。
公用方法 CopyTo 從特定的 System.Array 索引開始,將集合的元素複製到 System.Array
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetCategoriesBasedOn 取得根據指定的基底分類中所有屬性的列舉。
公用方法 GetEnumerator 傳回圖形分類的列舉程式。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 Remove 從集合中移除特定物件的第一個符合項目。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 IEnumerable<GraphCategory>.GetEnumerator

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.GraphModel 命名空間