GraphPropertyCollection 类

定义

public ref class GraphPropertyCollection : System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::GraphProperty ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphProperty ^>
public class GraphPropertyCollection : System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.GraphProperty>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphProperty>
type GraphPropertyCollection = class
    interface ICollection<GraphProperty>
    interface seq<GraphProperty>
    interface IEnumerable
Public Class GraphPropertyCollection
Implements ICollection(Of GraphProperty), IEnumerable(Of GraphProperty)
继承
GraphPropertyCollection
实现

构造函数

GraphPropertyCollection(GraphSchema)

属性

Count

获取 GraphProperties 集合中包含的元素数

IsReadOnly

获取一个值,该值指示 GraphProperties 集合是否为只读

Properties

获取 GraphProperties

Schema

方法

Add(GraphProperty)

将项添加到 GraphProperties 集合

AddNewProperty(String, Type)

向默认元数据创建者注册新的 GraphProperty。

AddNewProperty(String, Type, Func<GraphMetadata>)

注册新的 GraphProperty

Clear()

从集合中移除所有项

Contains(GraphProperty)

确定集合是否包含特定值

CopyTo(GraphProperty[], Int32)

从特定的 System.Array 索引开始,将集合的元素复制到 System.Array

GetEnumerator()

返回图形属性的枚举数

Remove(GraphProperty)

从集合中删除特定对象的第一个匹配项

显式接口实现

IEnumerable<GraphProperty>.GetEnumerator()

返回图形属性的枚举数

扩展方法

EmptyIfNull<T>(IEnumerable<T>)

如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。

适用于