Click or drag to resize

PageClientCaptureSnapshotAsync Method

Version 118.6.80
Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

Namespace:  CefSharp.DevTools.Page
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.0
Syntax
public Task<CaptureSnapshotResponse> CaptureSnapshotAsync(
	CaptureSnapshotFormat? format = null
)

Parameters

format (Optional)
Type: SystemNullableCaptureSnapshotFormat
Format (defaults to mhtml).

Return Value

Type: TaskCaptureSnapshotResponse
returns System.Threading.Tasks.Task<CaptureSnapshotResponse>
See Also