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






output
The stream to which you want to write. The XmlWriter writes Fast Infoset encoded XML and appends it to the specified stream.
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 output As Stream, _
   ByVal settings As XmlWriterSettings, _
   ByVal compression As FastInfosetCompression, _
   ByVal compressionLevel As Integer _
) As XmlWriter
Visual Basic (Usage)Copy Code
Dim output As Stream
Dim settings As XmlWriterSettings
Dim compression As FastInfosetCompression
Dim compressionLevel As Integer
Dim value As XmlWriter
 
value = XmlFastInfosetWriter.Create(output, settings, compression, compressionLevel)
Delphi 
public function Create( 
    output: Stream;
    settings: XmlWriterSettings;
    compression: FastInfosetCompression;
    compressionLevel: Integer
): XmlWriter; static; 
JScript 
public static function Create( 
   output : Stream,
   settings : XmlWriterSettings,
   compression : FastInfosetCompression,
   compressionLevel : int
) : XmlWriter;
Managed Extensions for C++ 
public: static XmlWriter* Create( 
   Stream* output,
   XmlWriterSettings* settings,
   FastInfosetCompression compression,
   int compressionLevel
) 
C++/CLI 
public:
static XmlWriter^ Create( 
   Stream^ output,
   XmlWriterSettings^ settings,
   FastInfosetCompression compression,
   int compressionLevel
) 

Parameters

output
The stream to which you want to write. The XmlWriter writes Fast Infoset encoded XML and appends it to the specified stream.
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