GraphSchema Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
A GraphSchema is a simple container of a set of GraphCategory and GraphProperty objects and the GraphMetadata associated with them.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.GraphModel.GraphSchema
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Class GraphSchema
public class GraphSchema
public ref class GraphSchema
type GraphSchema = class end
public class GraphSchema
The GraphSchema type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GraphSchema(String) | Constructs a new global GraphSchema object that has no owner. These are usually static instances. | |
GraphSchema(Graph, String) | Constructs a new GraphSchema object. |
Top
Properties
Name | Description | |
---|---|---|
Categories | All the GraphCategory objects that are registered with this schema. | |
IsDocumentSchema | Whether this is the document schema associated with a Graph instance for holding deserialized categories and properties that were not defined anywhere else. | |
Name | The programmatic name of this schema. | |
Owner | If this is a Document Schema, this owner points to the Graph that owns this schema. | |
Properties | All the GraphProperty objects that are registered with this schema. | |
Schemas | Returns a list of the child schemas that are contained in this schema (excluding grandchildren). |
Top
Methods
Name | Description | |
---|---|---|
AddSchema | Adds a child schema to this GraphSchema. | |
Contains | Returns true if this schema contains the given schema as a child or grandchild. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindCategories | Gets all the GraphCategories with the specified IDs in this schema and all child schemas recursively. | |
FindCategory | Gets the GraphCategory with the specified ID by searching this schema and all its children recursively. | |
FindCategoryByLabel | Gets the first GraphCategory with the specified label from this schema or any subschema. | |
FindProperties | Gets the GraphProperties with the specified IDs and all child schemas recursively. | |
FindProperty | Gets the GraphProperty with the specified ID. | |
FindPropertyByLabel | Gets the first GraphProperty with the specified label from this schema or any subschema. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OverrideMetadata | Overrides the metadata for this category | |
ToString | (Overrides Object.ToString().) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.