Click or drag to resize

GraphExtensions.SaveToStream 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:
Syntax
public static void SaveToStream(
	this IGraph g,
	string filename,
	TextWriter streamWriter
)

Parameters

g
Type: VDS.RDF.IGraph
The graph to write.
filename
Type: System.String
The output file name to use to determine the output format to write.
streamWriter
Type: System.IO.TextWriter
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