| DOMClientGetDocumentAsync Method  | 
Version 90.6.50 
            Returns the root DOM node (and optionally the subtree) to the caller.
            
 
    Namespace: 
   CefSharp.DevTools.DOM
    Assembly:
   CefSharp (in CefSharp.dll) Version: 90.6.50.0 (90.6.50.0)
 Syntax
Syntaxpublic Task<GetDocumentResponse> GetDocumentAsync(
	Nullable<int> depth = null,
	Nullable<bool> pierce = null
)
public:
Task<GetDocumentResponse^>^ GetDocumentAsync(
	Nullable<int> depth = nullptr, 
	Nullable<bool> pierce = nullptr
)
Parameters
- 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 subtree(default is false).
Return Value
Type: 
TaskGetDocumentResponsereturns System.Threading.Tasks.Task<GetDocumentResponse>
 See Also
See Also