GraphSchema 类
GraphSchema 是一个简单容器的设置 GraphCategory 和 GraphProperty 对象和 GraphMetadata 与它们。
继承层次结构
Object
Microsoft.VisualStudio.GraphModel.GraphSchema
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
Public Class GraphSchema
public class GraphSchema
public ref class GraphSchema
type GraphSchema = class end
public class GraphSchema
GraphSchema 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
GraphSchema(String) | 构造没有 owner 的新全局 GraphSchema 对象。它们通常是静态实例。 |
![]() |
GraphSchema(Graph, String) | 构造新 GraphSchema 对象。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Categories | 向此模式中注册的所有 GraphCategory 对象。 |
![]() |
IsDocumentSchema | 这是未定义的其他位置的文档模式与保存的对象类关系图实例和属性。 |
![]() |
Name | 此模式的编程名称。 |
![]() |
Owner | 如果这是文档模式,此所有者指向拥有此模式的关系图。 |
![]() |
Properties | 向此模式中注册的所有 GraphProperty 对象。 |
![]() |
Schemas | 返回此模式包含子架构的列表 (除、)。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
AddSchema | 添加子架构到此 GraphSchema。 |
![]() |
Contains | 如果此模式包含给定模式作为子级、或,则返回 true。 |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Finalize | 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
FindCategories | 递归获取具有指定的 ID 的所有 GraphCategories 此模式和子架构。 |
![]() |
FindCategory | 通过以递归方式搜索此模式及其所有子任务获取具有指定的 ID 的 GraphCategory。 |
![]() |
FindCategoryByLabel | 从此模式或所有子模式获取具有指定标签的第一 GraphCategory。 |
![]() |
FindProperties | 递归获取具有指定的 ID 和子架构的 GraphProperties。 |
![]() |
FindProperty | 获取具有指定的 ID. 的 GraphProperty |
![]() |
FindPropertyByLabel | 从此模式或所有子模式获取具有指定标签的第一 GraphProperty。 |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
OverrideMetadata | 重写此类别的元数据 |
![]() |
ToString | (重写 Object.ToString。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。