Click or drag to resize

GraphExtensionsSaveToStream Method (IGraph, String, TextWriter)

Save a graph to a stream, determining the type of writer to use by the output file name.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
public static void SaveToStream(
	this IGraph g,
	string filename,
	TextWriter streamWriter


Type: VDS.RDFIGraph
The graph to write.
Type: SystemString
The output file name to use to determine the output format to write.
Type: System.IOTextWriter
The stream to write to.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraph. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also