Click or drag to resize

DOMClientRequestChildNodesAsync Method

Version 91.1.160
Requests that children of the node with given id are returned to the caller in form of `setChildNodes` events where not only immediate children are retrieved, but all children down to the specified depth.

Namespace:  CefSharp.DevTools.DOM
Assembly:  CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax
public Task<DevToolsMethodResponse> RequestChildNodesAsync(
	int nodeId,
	Nullable<int> depth = null,
	Nullable<bool> pierce = null
)

Parameters

nodeId
Type: SystemInt32
Id of the node to get children for.
depth (Optional)
Type: SystemNullableInt32
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 (Optional)
Type: SystemNullableBoolean
Whether or not iframes and shadow roots should be traversed when returning the sub-tree(default is false).

Return Value

Type: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also