Share via


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
Public method GraphSchema(String) Constructs a new global GraphSchema object that has no owner. These are usually static instances.
Public method GraphSchema(Graph, String) Constructs a new GraphSchema object.

Top

Properties

  Name Description
Public property Categories All the GraphCategory objects that are registered with this schema.
Public property IsDocumentSchema Whether this is the document schema associated with a Graph instance for holding deserialized categories and properties that were not defined anywhere else.
Public property Name The programmatic name of this schema.
Public property Owner If this is a Document Schema, this owner points to the Graph that owns this schema.
Public property Properties All the GraphProperty objects that are registered with this schema.
Public property Schemas Returns a list of the child schemas that are contained in this schema (excluding grandchildren).

Top

Methods

  Name Description
Public method AddSchema Adds a child schema to this GraphSchema.
Public method Contains Returns true if this schema contains the given schema as a child or grandchild.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindCategories Gets all the GraphCategories with the specified IDs in this schema and all child schemas recursively.
Public method FindCategory Gets the GraphCategory with the specified ID by searching this schema and all its children recursively.
Public method FindCategoryByLabel Gets the first GraphCategory with the specified label from this schema or any subschema.
Public method FindProperties Gets the GraphProperties with the specified IDs and all child schemas recursively.
Public method FindProperty Gets the GraphProperty with the specified ID.
Public method FindPropertyByLabel Gets the first GraphProperty with the specified label from this schema or any subschema.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OverrideMetadata Overrides the metadata for this category
Public method 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.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace