An asynchronous function which reads data from a stream that was returned from a WebResponseInterface (though to be honest, it would perform the read on any stream).

Declaration Syntax

Function BeginReadStream( _
	ByVal processingState As ProcessingState, _
	ByVal buffer() As Byte, _
	ByVal offset As Integer, _
	ByVal count As Integer, _
	ByVal callback As AsyncCallback, _
	ByVal state As Object _
) As IAsyncResult
IAsyncResult BeginReadStream(
	ProcessingState processingState, 
	byte[] buffer, 
	int offset, 
	int count, 
	AsyncCallback callback, 
	object state
);
IAsyncResult BeginReadStream(
	ProcessingState processingState, 
	unsigned char buffer __gc[], 
	int offset, 
	int count, 
	AsyncCallback callback, 
	Object state
);
function BeginReadStream(
	processingState : ProcessingState, 
	buffer : Byte[], 
	offset : int, 
	count : int, 
	callback : AsyncCallback, 
	state : Object
) : IAsyncResult;

Parameters

processingState
A ProcessingState whose ResponseStream property has been filled in. 
buffer
The byte array into which the stream will write out it's contents. 
offset
The offset into the buffer at which to write out the stream's contents. 
count
The maximum number of bytes that can be written into the buffer 
callback
The callback function to call, if any, when GetResponse completes. 
state
State passed into the callback for asynchronous processing. 

Return Value

The asynchronous result token for the request.

Requirements

Namespace: Eas.WebCrawler.Model.Gateway
Assembly: Eas.WebCrawler.Model.Gateway (eas.webcrawler.model.gateway.dll)

See Also

WebGateway Interface | WebGateway Members | Eas.WebCrawler.Model.Gateway Namespace