SaveStream Method
SaveStream(TextWriter)
Saves the text content to the specified stream.
Declaration
public virtual bool SaveStream(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer | The TextWriter object to write text to stream. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveStream(TextWriter, IStringExport)
Saves the text content to the specified stream.
Declaration
public virtual bool SaveStream(TextWriter writer, IStringExport exporter)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer | The TextWriter object to write text to stream. |
IStringExport | exporter | Specifies exporter to save content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveStream(Stream)
Saves content of the snippet to the specified stream.
Declaration
public virtual bool SaveStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveStream(Stream, Encoding)
Saves the text content to the specified stream.
Declaration
public virtual bool SaveStream(Stream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveStream(Stream, IStringExport)
Saves content to the specific stream in the specific format.
Declaration
public virtual bool SaveStream(Stream stream, IStringExport exporter)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
IStringExport | exporter | Specifies exporter to save content. |
Returns
Type | Description |
---|---|
Boolean | True if succeed; otherwise false. |
Implements
SaveStream(Stream, IStringExport, Encoding)
Saves content to the specific stream in the specific format and specific encoding.
Declaration
public virtual bool SaveStream(Stream stream, IStringExport exporter, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The Stream object to write the text. |
IStringExport | exporter | Specifies exporter to save content. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True if succeed; otherwise false. |