Compartilhar via


Graph.Load Method

Definition

Overloads

Load(XmlReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])
Obsolete.

Loads the graph object model from the given XmlReader.

Load(XDocument, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given XDocument.

Load(TextReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given TextReader.

Load(Stream, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given stream.

Load(String, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Load a new Graph object from the given file.

Load(XDocument, GraphSchema[])

Loads the graph object model from the given XDocument.

Load(String, GraphSchema[])

Load a new Graph object from the given file.

Load(XmlReader, GraphSchema[])

Loads the graph object model from the given XmlReader. Consider not using this API since it might be removed in the future. Do not use this API unless you configured the reader with appropriate settings: DtdProcessing (Ignore) and CheckCharacters (false)

Load(TextReader, GraphSchema[])

Loads the graph object model from the given TextReader.

Load(Stream, GraphSchema[])

Loads the graph object model from the given stream.

Load(XmlReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Caution

This API is now deprecated.

Loads the graph object model from the given XmlReader.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::Xml::XmlReader ^ reader, EventHandler<Microsoft::VisualStudio::GraphModel::GraphDeserializationProgressEventArgs ^> ^ progressHandler, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
[System.Obsolete]
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.Xml.XmlReader reader, EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> progressHandler, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
[<System.Obsolete>]
static member Load : System.Xml.XmlReader * EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (reader As XmlReader, progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), ParamArray schemas As GraphSchema()) As Graph

Parameters

reader
XmlReader

The XmlReader to deserialize.

progressHandler
EventHandler<GraphDeserializationProgressEventArgs>

Callback handler for reporting load progress

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Attributes

Applies to

Load(XDocument, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given XDocument.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::Xml::Linq::XDocument ^ doc, EventHandler<Microsoft::VisualStudio::GraphModel::GraphDeserializationProgressEventArgs ^> ^ progressHandler, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.Xml.Linq.XDocument doc, EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> progressHandler, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.Xml.Linq.XDocument * EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (doc As XDocument, progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), ParamArray schemas As GraphSchema()) As Graph

Parameters

doc
XDocument

The XDocument to deserialize.

progressHandler
EventHandler<GraphDeserializationProgressEventArgs>

Callback handler for reporting load progress

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Applies to

Load(TextReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given TextReader.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::IO::TextReader ^ reader, EventHandler<Microsoft::VisualStudio::GraphModel::GraphDeserializationProgressEventArgs ^> ^ progressHandler, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.IO.TextReader reader, EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> progressHandler, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.IO.TextReader * EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (reader As TextReader, progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), ParamArray schemas As GraphSchema()) As Graph

Parameters

reader
TextReader

The TextReader to deserialize.

progressHandler
EventHandler<GraphDeserializationProgressEventArgs>

Callback handler for reporting load progress

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Applies to

Load(Stream, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given stream.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::IO::Stream ^ stream, EventHandler<Microsoft::VisualStudio::GraphModel::GraphDeserializationProgressEventArgs ^> ^ progressHandler, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.IO.Stream stream, EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> progressHandler, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.IO.Stream * EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (stream As Stream, progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), ParamArray schemas As GraphSchema()) As Graph

Parameters

stream
Stream

The stream to deserialize

progressHandler
EventHandler<GraphDeserializationProgressEventArgs>

Callback handler for reporting load progress

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object

Applies to

Load(String, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Load a new Graph object from the given file.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::String ^ fileName, EventHandler<Microsoft::VisualStudio::GraphModel::GraphDeserializationProgressEventArgs ^> ^ progressHandler, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (string fileName, EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> progressHandler, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : string * EventHandler<Microsoft.VisualStudio.GraphModel.GraphDeserializationProgressEventArgs> * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (fileName As String, progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), ParamArray schemas As GraphSchema()) As Graph

Parameters

fileName
String

The filename

progressHandler
EventHandler<GraphDeserializationProgressEventArgs>

Callback handler for reporting load progress

schemas
GraphSchema[]

the schemas

Returns

The Graph, if loaded

Applies to

Load(XDocument, GraphSchema[])

Loads the graph object model from the given XDocument.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::Xml::Linq::XDocument ^ doc, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.Xml.Linq.XDocument doc, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.Xml.Linq.XDocument * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (doc As XDocument, ParamArray schemas As GraphSchema()) As Graph

Parameters

doc
XDocument

The XDocument to deserialize.

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Applies to

Load(String, GraphSchema[])

Load a new Graph object from the given file.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::String ^ fileName, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (string fileName, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : string * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (fileName As String, ParamArray schemas As GraphSchema()) As Graph

Parameters

fileName
String

The filename

schemas
GraphSchema[]

the schemas

Returns

The Graph, if loaded

Applies to

Load(XmlReader, GraphSchema[])

Loads the graph object model from the given XmlReader. Consider not using this API since it might be removed in the future. Do not use this API unless you configured the reader with appropriate settings: DtdProcessing (Ignore) and CheckCharacters (false)

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::Xml::XmlReader ^ reader, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.Xml.XmlReader reader, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.Xml.XmlReader * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (reader As XmlReader, ParamArray schemas As GraphSchema()) As Graph

Parameters

reader
XmlReader

The XmlReader to deserialize.

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Applies to

Load(TextReader, GraphSchema[])

Loads the graph object model from the given TextReader.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::IO::TextReader ^ reader, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.IO.TextReader reader, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.IO.TextReader * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (reader As TextReader, ParamArray schemas As GraphSchema()) As Graph

Parameters

reader
TextReader

The TextReader to deserialize.

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object.

Applies to

Load(Stream, GraphSchema[])

Loads the graph object model from the given stream.

public:
 static Microsoft::VisualStudio::GraphModel::Graph ^ Load(System::IO::Stream ^ stream, ... cli::array <Microsoft::VisualStudio::GraphModel::GraphSchema ^> ^ schemas);
public static Microsoft.VisualStudio.GraphModel.Graph Load (System.IO.Stream stream, params Microsoft.VisualStudio.GraphModel.GraphSchema[] schemas);
static member Load : System.IO.Stream * Microsoft.VisualStudio.GraphModel.GraphSchema[] -> Microsoft.VisualStudio.GraphModel.Graph
Public Shared Function Load (stream As Stream, ParamArray schemas As GraphSchema()) As Graph

Parameters

stream
Stream

The stream to deserialize

schemas
GraphSchema[]

the schemas

Returns

New deserialized Graph object

Applies to