LumiSoft Mail Server User API
ReadAll Method (storeStream, maxSize)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadAll(Stream, Int32)
Reads all source stream data and stores to the specified store stream.
Syntax
C#Visual BasicManaged C++
public int ReadAll (
	Stream storeStream,
	int maxSize
)
Public Function ReadAll ( _
	storeStream As Stream, _
	maxSize As Integer _
) As Integer
public:
int ReadAll (
	Stream^ storeStream, 
	int maxSize
)
Parameters
storeStream (Stream)
Stream where to store readed data.
maxSize (Int32)
Maximum muber of bytes to read.
Return Value
Returns number of bytes written to storeStream.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when storeStream is null.
ArgumentExceptionRaised when maxSize less than 1.
InvalidOperationExceptionRaised when there already is pending read operation.
DataSizeExceededExceptionRaised when maximum allowed data size has exceeded.

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