Share via


GraphPropertyCollection 類別

繼承階層架構

Object
  Microsoft.VisualStudio.GraphModel.GraphPropertyCollection

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

語法

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

GraphPropertyCollection 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 GraphPropertyCollection

回頁首

屬性

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

回頁首

方法

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

回頁首

明確介面實作

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

回頁首

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.GraphModel 命名空間