FilterGraphTools.LoadGraphFile Method

DirectShowLib.Utils

A Managed DirectShow Toolkit

FilterGraphTools.LoadGraphFile Method 

Load a DirectShow Graph from a file

public static void LoadGraphFile(
   IGraphBuilder graphBuilder,
   string fileName
);

Parameters

graphBuilder
the IGraphBuilder interface of the graph
fileName
the file to be loaded

Exceptions

Exception Type Condition
ArgumentNullException Thrown if graphBuilder is null
ArgumentException Thrown if the given file is not a valid graph file
COMException Thrown if errors occur during loading

See Also

FilterGraphTools Class | DirectShowLib.Utils Namespace | SaveGraphFile