Begins an asynchronous read operation.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public override IAsyncResult BeginRead( byte[] buffer, int offset, int count, AsyncCallback callback, Object state )
Public Overrides Function BeginRead ( buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object ) As IAsyncResult
public: virtual IAsyncResult^ BeginRead( array<unsigned char>^ buffer, int offset, int count, AsyncCallback^ callback, Object^ state ) override
abstract BeginRead : buffer : byte[] * offset : int * count : int * callback : AsyncCallback * state : Object -> IAsyncResult override BeginRead : buffer : byte[] * offset : int * count : int * callback : AsyncCallback * state : Object -> IAsyncResult
![](../icons/collapse_all.gif)
- buffer (array<Byte>[]()[][])
- The buffer to read the data into.
- offset (Int32)
- The byte offset in buffer at which to begin writing data read from the stream.
- count (Int32)
- The maximum number of bytes to read.
- callback (AsyncCallback)
- An optional asynchronous callback, to be called when the read is complete.
- state (Object)
- A user-provided object that distinguishes this particular asynchronous read request from other requests.
![](../icons/collapse_all.gif)
IAsyncResult
An IAsyncResult that represents the asynchronous read, which could still be pending.
An IAsyncResult that represents the asynchronous read, which could still be pending.
![](../icons/collapse_all.gif)
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
ArgumentNullException | Is raised when buffer is null reference. |
ArgumentOutOfRangeException | Is raised when any of the arguments has out of valid range. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119