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
Public method GraphSerializer() Constructs a GraphSerializer object
Public method GraphSerializer(Graph) Constructs a GraphSerializer object for the passed in Graph

Top

Properties

  Name Description
Public propertyStatic member CommonPaths Get/Set the static CommonPaths used to map entities in the DGML documents.

Top

Methods

  Name Description
Public method Deserialize Deserialize the graph from the given XDocument object
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 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Load(Stream) Deserialize the graph object model from the given stream.
Public methodStatic member Load(TextReader) Deserialize the graph object model from the given text reader.
Public methodStatic member Load(String) Deserialize the graph object model from the given file.
Public methodStatic member Load(XDocument) Deserialize the graph object model from the given XDocument.
Public methodStatic member Load(XmlReader) Deserialize the graph object model from the given XML reader.
Public methodStatic member Load(Stream, array<GraphSchema[])
Public methodStatic member Load(TextReader, array<GraphSchema[])
Public methodStatic member Load(String, array<GraphSchema[])
Public methodStatic member Load(XDocument, Graph) Deserialize the graph object model from the given XDocument into the given graph object.
Public methodStatic member Load(XDocument, array<GraphSchema[])
Public methodStatic member Load(XmlReader, array<GraphSchema[])
Public methodStatic member Load(XDocument, Graph, array<GraphSchema[])
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Save(Graph, Stream) Serialize the given graph to the given output stream.
Public methodStatic member Save(Graph, TextWriter) Serialize the given graph to the given text writer.
Public methodStatic member Save(Graph, String) Serialize the given graph to the given file name.
Public methodStatic member Save(Graph, XmlWriter) Serialize the given graph to the given XML writer.
Public methodStatic member Save(Graph, TextWriter, Int32) Serialize the given graph to the given text writer.
Public method Serialize Serialize the given graph to the given XML writer. The graph is to serialize is a member of this class.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event 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.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace