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 Basic | Managed 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

Exception | Condition
--- | ---
ArgumentNullException | Raised when storeStream is null.
ArgumentException | Raised when count less than 1.
InvalidOperationException | Raised when there already is pending read operation.
IncompleteDataException | Raised 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)