GraphExtensionsSaveToStream Method (IGraph, String, TextWriter)
Save a graph to a stream, determining the type of writer to use by the output file name.
dotNetRDF (in dotNetRDF.dll) Version:
public static void SaveToStream(
this IGraph g,
Public Shared Sub SaveToStream (
g As IGraph,
filename As String,
streamWriter As TextWriter
- 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.
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)