HttpWorkerRequest.BeginRead 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开始请求实体正文的异步读取操作。
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
用户提供的对象,用于区分此特定异步读取与其他请求。