LumiSoft Mail Server User API
BeginWrite Method (data, offset, count, callback)
Namespaces > LumiSoft.Net.IO > StreamHelper > BeginWrite(Byte[](), Int32, Int32, WriteCallback)
Starts writing specified data to source stream.
Syntax
C#Visual BasicManaged C++
public void BeginWrite (
	byte[] data,
	int offset,
	int count,
	WriteCallback callback
)
Public Sub BeginWrite ( _
	data As Byte(), _
	offset As Integer, _
	count As Integer, _
	callback As WriteCallback _
)
public:
void BeginWrite (
	array<unsigned char>^ data, 
	int offset, 
	int count, 
	WriteCallback^ callback
)
Parameters
data (Byte[]())
Data what to write to source stream.
offset (Int32)
The zero-based byte offset in buffer at which to begin copying bytes to the source stream.
count (Int32)
The number of bytes to be written to the source stream.
callback (WriteCallback)
Callback to be callled if write completes.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when data is null.
InvalidOperationExceptionRaised when there already is pending write operation.

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