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)

public:
static Graph^ Load(
	String^ fileName,
	EventHandler<GraphDeserializationProgressEventArgs^>^ progressHandler,
	... array<GraphSchema^>^ schemas
)

Parameters

fileName
Type: System::String^

The file name.

progressHandler
Type: System::EventHandler<GraphDeserializationProgressEventArgs^>^

Callback handler for reporting load progress.

schemas
Type: array<Microsoft.VisualStudio.GraphModel::GraphSchema^>^

The schemas.

Return Value

Type: Microsoft.VisualStudio.GraphModel::Graph^

The Graph, if loaded.

Return to top
Show: