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:
Syntax public static void SaveToStream(
this IGraph g,
string filename,
TextWriter streamWriter
)
<ExtensionAttribute>
Public Shared Sub SaveToStream (
g As IGraph,
filename As String,
streamWriter As TextWriter
)
Parameters
- g
- Type: VDS.RDFIGraph
The graph to write. - filename
- Type: SystemString
The output file name to use to determine the output format to write. - streamWriter
- 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