SetOutputStream Method
Sets the stream to which the XML will be written.
Syntax
[VB.NET] Public Sub SetOutputStream(ByVal OutputStream As System.IO.Stream)
[C#] public void SetOutputStream(System.IO.Stream outputStream);
Remarks
This method is used to set the stream to which the XML data will be written. The component will automatically close this stream if CloseStream is true (default). If the stream is closed, you will need to call SetOutputStream again before writing again.
Note: SetOutputStream and OutputFile will reset the other.