HttpWorkerRequest.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) 方法
定义
启动请求的实体正文中的一次异步读取操作。Begins an asynchronous read operation of the request entity body.
public:
virtual IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state);
abstract member BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginRead (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- buffer
- Byte[]
数据读入的缓冲区。The buffer to read the data into.
- offset
- Int32
缓冲区中开始写入数据的字节偏移量。The byte offset in the buffer at which to begin writing data.
- count
- Int32
最多读取的字节数。The maximum number of bytes to read.
- callback
- AsyncCallback
相应异步操作完成时要调用的方法。The method to call when a corresponding asynchronous operation completes.
- state
- Object
一个用户提供的对象,它将该特定的异步读取与其他请求区别开来。A user-provided object that distinguishes this particular asynchronous read from other requests.