Click or drag to resize

IResourceHandlerReadResponse Method

Version 105.3.390

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: 105.3.390.0 (105.3.390.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
Type: System.IOStream
Stream to write to
bytesRead
Type: SystemInt32
Number of bytes copied to the stream
callback
Type: CefSharpICallback
The callback used to Continue or Cancel the request (async).

Return Value

Type: 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