Click or drag to resize

IResourceHandlerReadResponse Method

Version 130.1.90

Note: This API is now obsolete.

Read response data. If data is available immediately copy to dataOut, set bytesRead to the number of bytes copied, and return true. To read the data at a later time set bytesRead to 0, return true and call ICallback.Continue() when the data is available. To indicate response completion return false.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
[ObsoleteAttribute("This method is deprecated and will be removed in the next version. Use Skip and Read instead.")]
bool ReadResponse(
	Stream dataOut,
	out int bytesRead,
	ICallback callback
)

Parameters

dataOut  Stream
Stream to write to
bytesRead  Int32
Number of bytes copied to the stream
callback  ICallback
The callback used to Continue or Cancel the request (async).

Return Value

Boolean
If data is available immediately copy to dataOut, set bytesRead to the number of bytes copied, and return true.To indicate response completion return false.
Remarks
Depending on this size of your response this method may be called multiple times
See Also