GraphSerializer.Load Method (XDocument, Graph)
Deserialize the graph object model from the given XDocument into the given graph object.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Shared Function Load ( _
doc As XDocument, _
graph As Graph _
) As Graph
public static Graph Load(
XDocument doc,
Graph graph
)
public:
static Graph^ Load(
XDocument^ doc,
Graph^ graph
)
static member Load :
doc:XDocument *
graph:Graph -> Graph
public static function Load(
doc : XDocument,
graph : Graph
) : Graph
Parameters
- doc
Type: System.Xml.Linq.XDocument
The XDocument to deserialize
- graph
Type: Microsoft.VisualStudio.GraphModel.Graph
The Graph to deserialize into
Return Value
Type: Microsoft.VisualStudio.GraphModel.Graph
new deserialized Graph object
.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.