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






outputFileName
The file to which you want to write XmlWriter creates a file at the specified path. The outputFileName must be a file system path.
settings
The XmlWriterSettings object used to configure the new XmlWriter instance. If this is null (Northing in Visual Basic), a XmlWriterSettings with default settings is used.
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 stream using an XmlWriterSettings object.

Syntax

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

Parameters

outputFileName
The file to which you want to write XmlWriter creates a file at the specified path. The outputFileName must be a file system path.
settings
The XmlWriterSettings object used to configure the new XmlWriter instance. If this is null (Northing in Visual Basic), a XmlWriterSettings with default settings is used.
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