LumiSoft Mail Server User API
BeginWrite Method (stream, count, callback)
Namespaces > LumiSoft.Net.IO > StreamHelper > BeginWrite(Stream, Int32, WriteStreamCallback)
Strats writing specified amount of data from stream to source stream.
Syntax

C# | Visual Basic | Managed C++

    public void BeginWrite (
    	Stream stream,
    	int count,
    	WriteStreamCallback callback
    )

    Public Sub BeginWrite ( _
    	stream As Stream, _
    	count As Integer, _
    	callback As WriteStreamCallback _
    )

    public:
    void BeginWrite (
    	Stream^ stream,
    	int count,
    	WriteStreamCallback^ callback
    )

Parameters

stream (Stream)
  Stream which data to wite to source stream.
count (Int32)
  Number of bytes read from stream and write to source stream.
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)