LumiSoft Mail Server User API
Read Method (storeStream, count)
Namespaces > LumiSoft.Net.IO > StreamHelper > Read(Stream, Int32)
Reads specified amount of data from source stream and stores to specified store stream.
Syntax
C#Visual BasicManaged C++
public void Read (
	Stream storeStream,
	int count
)
Public Sub Read ( _
	storeStream As Stream, _
	count As Integer _
)
public:
void Read (
	Stream^ storeStream, 
	int count
)
Parameters
storeStream (Stream)
Stream where to store readed data.
count (Int32)
Number of bytes to read from source stream and write to store stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when storeStream is null.
ArgumentExceptionRaised when count less than 1.
InvalidOperationExceptionRaised when there already is pending read operation.
IncompleteDataExceptionRaised source stream has reached end of stream and doesn't have so much data as specified by count argument.

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