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)

将集合的元素复制到系统数组,从特定的系统数组开始。数组索引

GetEnumerator()

返回图形属性的枚举器

Remove(GraphProperty)

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

显式接口实现

IEnumerable<GraphProperty>.GetEnumerator()

返回图形属性的枚举器

扩展方法

EmptyIfNull<T>(IEnumerable<T>)

适用于