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 Basic | Managed 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

Exception | Condition
--- | ---
ArgumentNullException | Raised when stream is null.
InvalidOperationException | Raised when there already is pending write operation.
LineSizeExceededException | Raised when stream contains line with bigger line size than allowed.
DataSizeExceededException | Raised when stream has more data than maxSize allows..

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