LumiSoft Mail Server User API
BeginWritePeriodTerminated Method (stream, maxSize, tag, callback)
Namespaces > LumiSoft.Net.IO > StreamHelper > BeginWritePeriodTerminated(Stream, Int32, Object, WriteStreamCallback)
Starts writing stream data to source stream. Data will be period handled and terminated as needed.
Syntax
C#Visual BasicManaged C++
public void BeginWritePeriodTerminated (
	Stream stream,
	int maxSize,
	Object tag,
	WriteStreamCallback callback
)
Public Sub BeginWritePeriodTerminated ( _
	stream As Stream, _
	maxSize As Integer, _
	tag As Object, _
	callback As WriteStreamCallback _
)
public:
void BeginWritePeriodTerminated (
	Stream^ stream, 
	int maxSize, 
	Object^ tag, 
	WriteStreamCallback^ callback
)
Parameters
stream (Stream)
Stream which data to write to source stream.
maxSize (Int32)
Maximum muber of bytes to read from stream and write source stream.
tag (Object)
User data.
callback (WriteStreamCallback)
Callback to be called if asynchronous write completes.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when stream is null.
InvalidOperationExceptionRaised when there already is pending write operation.

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