GraphSerializer Class
GraphSerializer is used to serialize Graph objects.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.GraphModel.GraphSerializer
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Class GraphSerializer
public class GraphSerializer
public ref class GraphSerializer
type GraphSerializer = class end
public class GraphSerializer
The GraphSerializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GraphSerializer() | Constructs a GraphSerializer object | |
GraphSerializer(Graph) | Constructs a GraphSerializer object for the passed in Graph |
Top
Properties
Name | Description | |
---|---|---|
CommonPaths | Get/Set the static CommonPaths used to map entities in the DGML documents. |
Top
Methods
Name | Description | |
---|---|---|
Deserialize | Deserialize the graph from the given XDocument object | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Load(Stream) | Deserialize the graph object model from the given stream. | |
Load(TextReader) | Deserialize the graph object model from the given text reader. | |
Load(String) | Deserialize the graph object model from the given file. | |
Load(XDocument) | Deserialize the graph object model from the given XDocument. | |
Load(XmlReader) | Deserialize the graph object model from the given XML reader. | |
Load(Stream, array<GraphSchema[]) | ||
Load(TextReader, array<GraphSchema[]) | ||
Load(String, array<GraphSchema[]) | ||
Load(XDocument, Graph) | Deserialize the graph object model from the given XDocument into the given graph object. | |
Load(XDocument, array<GraphSchema[]) | ||
Load(XmlReader, array<GraphSchema[]) | ||
Load(XDocument, Graph, array<GraphSchema[]) | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save(Graph, Stream) | Serialize the given graph to the given output stream. | |
Save(Graph, TextWriter) | Serialize the given graph to the given text writer. | |
Save(Graph, String) | Serialize the given graph to the given file name. | |
Save(Graph, XmlWriter) | Serialize the given graph to the given XML writer. | |
Save(Graph, TextWriter, Int32) | Serialize the given graph to the given text writer. | |
Serialize | Serialize the given graph to the given XML writer. The graph is to serialize is a member of this class. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
ErrorHandler | Add this error handler to catch all deserialization exceptions and continue. If there is no error handler registered then the serializer will throw the exception and stop. |
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.