DOMClientGetDocumentAsync Method |
Version 130.1.90
Returns the root DOM node (and optionally the subtree) to the caller.
Implicitly enables the DOM domain events for the current target.
Namespace: CefSharp.DevTools.DOMAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<GetDocumentResponse> GetDocumentAsync(
int? depth = null,
bool? pierce = null
)
public:
Task<GetDocumentResponse^>^ GetDocumentAsync(
Nullable<int> depth = nullptr,
Nullable<bool> pierce = nullptr
)
Parameters
- depth NullableInt32 (Optional)
- The maximum depth at which children should be retrieved, defaults to 1. Use -1 for theentire subtree or provide an integer larger than 0.
- pierce NullableBoolean (Optional)
- Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false).
Return Value
TaskGetDocumentResponsereturns System.Threading.Tasks.Task<GetDocumentResponse>
See Also