LumiSoft Mail Server User API
BeginReadPeriodTerminated Method (storeStream, maxSize, exceededAction, callback, tag)
Namespaces > LumiSoft.Net.IO > StreamHelper > BeginReadPeriodTerminated(Stream, Int32, SizeExceededAction, ReadToStreamCallback, Object)
Begins reading period terminated data from source stream. Reads data while gets single period on line, what is data terminator.
Syntax

C# | Visual Basic | Managed C++

    public void BeginReadPeriodTerminated (
    	Stream storeStream,
    	int maxSize,
    	SizeExceededAction exceededAction,
    	ReadToStreamCallback callback,
    	Object tag
    )

    Public Sub BeginReadPeriodTerminated ( _
    	storeStream As Stream, _
    	maxSize As Integer, _
    	exceededAction As SizeExceededAction, _
    	callback As ReadToStreamCallback, _
    	tag As Object _
    )

    public:
    void BeginReadPeriodTerminated (
    	Stream^ storeStream,
    	int maxSize,
    	SizeExceededAction exceededAction,
    	ReadToStreamCallback^ callback,
    	Object^ tag
    )

Parameters

storeStream (Stream)
  Stream where to store data.
maxSize (Int32)
  Maximum muber of bytes to read.
exceededAction (SizeExceededAction)
  Specifies how this method behaves when maximum size exceeded.
callback (ReadToStreamCallback)
  Callback to be called if asynchronous reading completes.
tag (Object)
  User data.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Raised when storeStream is null.
InvalidOperationException | Raised when there already is pending read operation.

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