LumiSoft Mail Server User API
BeginWriteAll Method (stream, maxSize, tag, callback)
Namespaces > LumiSoft.Net.IO > StreamHelper > BeginWriteAll(Stream, Int32, Object, WriteStreamCallback)
Starts writing all stream data to source stream.
Syntax

C# | Visual Basic | Managed C++

    public void BeginWriteAll (
    	Stream stream,
    	int maxSize,
    	Object tag,
    	WriteStreamCallback callback
    )

    Public Sub BeginWriteAll ( _
    	stream As Stream, _
    	maxSize As Integer, _
    	tag As Object, _
    	callback As WriteStreamCallback _
    )

    public:
    void BeginWriteAll (
    	Stream^ stream,
    	int maxSize,
    	Object^ tag,
    	WriteStreamCallback^ callback
    )

Parameters

stream (Stream)
  Stream which data to write.
maxSize (Int32)
  Maximum number of bytes to read from stream.
tag (Object)
  User data.
callback (WriteStreamCallback)
  Callback to be called if asynchronous write completes.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Raised when stream is null.
InvalidOperationException | Raised when there already is pending write operation.

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