HttpWorkerRequest.BeginRead 方法

定义

启动请求的实体正文中的一次异步读取操作。

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[]

数据读入的缓冲区。

offset
Int32

缓冲区中开始写入数据的字节偏移量。

count
Int32

最多读取的字节数。

callback
AsyncCallback

相应异步操作完成时要调用的方法。

state
Object

一个用户提供的对象,它将该特定的异步读取与其他请求区别开来。

返回

适用于