Graph.AddSchema Method
Adds a new schema to the Graph. As soon as it is added, it cannot be removed again as nodes or links might be using categories or properties from the schema.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Overridable Sub AddSchema ( _
schema As GraphSchema _
)
public virtual void AddSchema(
GraphSchema schema
)
public:
virtual void AddSchema(
GraphSchema^ schema
)
abstract AddSchema :
schema:GraphSchema -> unit
override AddSchema :
schema:GraphSchema -> unit
public function AddSchema(
schema : GraphSchema
)
Parameters
schema
Type: Microsoft.VisualStudio.GraphModel.GraphSchemaThe schema to add to the graph.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.