LumiSoft Mail Server User API
WritePeriodTerminated Method (stream)
Namespaces > LumiSoft.Net.IO > StreamHelper > WritePeriodTerminated(Stream)
Reades all data from the specified stream and writes it to source stream. Period handlign and period terminator is added as required.
Syntax
C#Visual BasicManaged C++
public int WritePeriodTerminated (
	Stream stream
)
Public Function WritePeriodTerminated ( _
	stream As Stream _
) As Integer
public:
int WritePeriodTerminated (
	Stream^ stream
)
Parameters
stream (Stream)
Stream which data to write to source stream.
Return Value
Returns number of bytes written to source stream. Note this value differs from stream readed bytes count because of period handling and period terminator.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when stream is null.
InvalidOperationExceptionRaised when there already is pending write operation.
LineSizeExceededExceptionRaised when stream contains line with bigger line size than allowed.
DataSizeExceededExceptionRaised when stream has more data than maxSize allows..

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)