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: StringThe file name.
progressHandler
Type: 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.
.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.