Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetWriter.Init(Stream,bool) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetWriter Class > Init Method : Init(Stream,Boolean) Method



output
The stream to which you want to write.
closeOutput
If set to true writer will close the output stream when closed.
Initializes an instance of the XmlFastInfosetWriter class preparing to write into the specified stream.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Init( _
   ByVal output As Stream, _
   ByVal closeOutput As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetWriter
Dim output As Stream
Dim closeOutput As Boolean
 
instance.Init(output, closeOutput)
C# 
public void Init( 
   Stream output,
   bool closeOutput
)
C++/CLI 
public:
void Init( 
   Stream^ output,
   bool closeOutput
) 

Parameters

output
The stream to which you want to write.
closeOutput
If set to true writer will close the output stream when closed.

Remarks

Initializes the writer and sets it to use the provided stream as output.

This method allows the reuse the XmlFastInfosetWriter for writing to another stream.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also