Graph.AddSchema(GraphSchema) Method

Definition

Add a new schema to the Graph - once it's added, it cannot be removed again as nodes or links might be using categories or properties from the schema.

public:
 virtual void AddSchema(Microsoft::VisualStudio::GraphModel::GraphSchema ^ schema);
public virtual void AddSchema (Microsoft.VisualStudio.GraphModel.GraphSchema schema);
abstract member AddSchema : Microsoft.VisualStudio.GraphModel.GraphSchema -> unit
override this.AddSchema : Microsoft.VisualStudio.GraphModel.GraphSchema -> unit
Public Overridable Sub AddSchema (schema As GraphSchema)

Parameters

schema
GraphSchema

The schema to add to the graph

Applies to