Click or drag to resize

DOMClientRequestChildNodesAsync Method

Version 110.0.300
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: 110.0.300.0 (110.0.300.0)
Syntax
public Task<DevToolsMethodResponse> RequestChildNodesAsync(
	int nodeId,
	int? depth = null,
	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