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) 用默认元数据创建器注册新 GraphProperty。
公共方法 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 的浅表副本。 (继承自 Object。)
公共方法 Remove 从集合中移除特定对象的第一个匹配项
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IEnumerable<GraphProperty>.GetEnumerator

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.GraphModel 命名空间