Share via


Graph.Load Method (String, EventHandler<GraphDeserializationProgressEventArgs>, array<GraphSchema )

Loads a new Graph object from the given file.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Shared Function Load ( _
    fileName As String, _
    progressHandler As EventHandler(Of GraphDeserializationProgressEventArgs), _
    ParamArray schemas As GraphSchema() _
) As Graph
public static Graph Load(
    string fileName,
    EventHandler<GraphDeserializationProgressEventArgs> progressHandler,
    params GraphSchema[] schemas
)
public:
static Graph^ Load(
    String^ fileName, 
    EventHandler<GraphDeserializationProgressEventArgs^>^ progressHandler, 
    ... array<GraphSchema^>^ schemas
)
static member Load : 
        fileName:string * 
        progressHandler:EventHandler<GraphDeserializationProgressEventArgs> * 
        schemas:GraphSchema[] -> Graph
public static function Load(
    fileName : String, 
    progressHandler : EventHandler<GraphDeserializationProgressEventArgs>, 
    ... schemas : GraphSchema[]
) : Graph

Parameters

  • fileName
    Type: String

    The file name.

Return Value

Type: Microsoft.VisualStudio.GraphModel.Graph
The Graph, if loaded.

.NET Framework Security

See Also

Reference

Graph Class

Load Overload

Microsoft.VisualStudio.GraphModel Namespace