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.


Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public class GraphSchema

The GraphSchema type exposes the following members.

Public methodGraphSchema(String)Constructs a new global GraphSchema object that has no owner. These are usually static instances.
Public methodGraphSchema(Graph, String)Constructs a new GraphSchema object.

Public propertyCategoriesAll the GraphCategory objects that are registered with this schema.
Public propertyIsDocumentSchemaWhether this is the document schema associated with a Graph instance for holding deserialized categories and properties that were not defined anywhere else.
Public propertyNameThe programmatic name of this schema.
Public propertyOwnerIf this is a Document Schema, this owner points to the Graph that owns this schema.
Public propertyPropertiesAll the GraphProperty objects that are registered with this schema.
Public propertySchemasReturns a list of the child schemas that are contained in this schema (excluding grandchildren).

Public methodAddSchemaAdds a child schema to this GraphSchema.
Public methodContainsReturns true if this schema contains the given schema as a child or grandchild.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindCategoriesGets all the GraphCategories with the specified IDs in this schema and all child schemas recursively.
Public methodFindCategoryGets the GraphCategory with the specified ID by searching this schema and all its children recursively.
Public methodFindCategoryByLabelGets the first GraphCategory with the specified label from this schema or any subschema.
Public methodFindPropertiesGets the GraphProperties with the specified IDs and all child schemas recursively.
Public methodFindPropertyGets the GraphProperty with the specified ID.
Public methodFindPropertyByLabelGets the first GraphProperty with the specified label from this schema or any subschema.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOverrideMetadataOverrides the metadata for this category
Public methodToString (Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft