Begins an asynchronous data reading from the source stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public IAsyncResult BeginReadFixedCount( Stream storeStream, long count, AsyncCallback callback, Object state )
Public Function BeginReadFixedCount ( storeStream As Stream, count As Long, callback As AsyncCallback, state As Object ) As IAsyncResult
public: IAsyncResult^ BeginReadFixedCount( Stream^ storeStream, long long count, AsyncCallback^ callback, Object^ state )
member BeginReadFixedCount : storeStream : Stream * count : int64 * callback : AsyncCallback * state : Object -> IAsyncResult
Parameters
- storeStream (Stream)
- Stream where to store readed header.
- count (Int64)
- Number of bytes to read.
- callback (AsyncCallback)
- The AsyncCallback delegate that is executed when asynchronous operation completes.
- state (Object)
- An object that contains any additional user-defined data.
Return Value
IAsyncResult
An IAsyncResult that represents the asynchronous call.
An IAsyncResult that represents the asynchronous call.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
ArgumentNullException | Is raised when storeStream is null reference. |
ArgumentException | Is raised when any of the arguments has invalid value. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119