DOMClientRequestChildNodesAsync Method |
Version 104.4.240
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: 104.4.240.0 (104.4.240.0)
Syntax public Task<DevToolsMethodResponse> RequestChildNodesAsync(
int nodeId,
int? depth = null,
bool? pierce = null
)
public:
Task<DevToolsMethodResponse^>^ RequestChildNodesAsync(
int nodeId,
Nullable<int> depth = nullptr,
Nullable<bool> pierce = nullptr
)
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also