Noemax FastInfoset.NET
Create(String,FastInfosetCompression,Int32) Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetWriter Class > Create Method : Create(String,FastInfosetCompression,Int32) Method






outputFileName
The file to which you want to write. The System.Xml.XmlWriter creates a file at the specified path and writes to it FastInfoset encoded XML data. The outputFileName must be a file system path.
compression
The compression algorithm to compress the output data.
compressionLevel
Gets and sets the compression level to be applied, were 1 is for fastest compression and 9 for maximum compression.
Creates a new XmlWriter instance for writing Fast Infoset encoded XML into the specified file.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Create( _
   ByVal outputFileName As String, _
   ByVal compression As FastInfosetCompression, _
   ByVal compressionLevel As Integer _
) As XmlWriter
Visual Basic (Usage)Copy Code
Dim outputFileName As String
Dim compression As FastInfosetCompression
Dim compressionLevel As Integer
Dim value As XmlWriter
 
value = XmlFastInfosetWriter.Create(outputFileName, compression, compressionLevel)
C# 
public static XmlWriter Create( 
   string outputFileName,
   FastInfosetCompression compression,
   int compressionLevel
)
Delphi 
public function Create( 
    outputFileName: String;
    compression: FastInfosetCompression;
    compressionLevel: Integer
): XmlWriter; static; 
JScript 
public static function Create( 
   outputFileName : String,
   compression : FastInfosetCompression,
   compressionLevel : int
) : XmlWriter;
Managed Extensions for C++ 
public: static XmlWriter* Create( 
   string* outputFileName,
   FastInfosetCompression compression,
   int compressionLevel
) 
C++/CLI 
public:
static XmlWriter^ Create( 
   String^ outputFileName,
   FastInfosetCompression compression,
   int compressionLevel
) 

Parameters

outputFileName
The file to which you want to write. The System.Xml.XmlWriter creates a file at the specified path and writes to it FastInfoset encoded XML data. The outputFileName must be a file system path.
compression
The compression algorithm to compress the output data.
compressionLevel
Gets and sets the compression level to be applied, were 1 is for fastest compression and 9 for maximum compression.

Return Value

An System.Xml.XmlWriter object.

See Also