DevToolsExtensionsSetMainFrameDocumentContentAsync(IChromiumWebBrowserBase, String) Method |
Version 130.1.90
Set the Document Content for the Main Frame using DevTools Protocol.
Namespace: CefSharpAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public static Task<bool> SetMainFrameDocumentContentAsync(
this IChromiumWebBrowserBase chromiumWebBrowser,
string html
)
public:
[ExtensionAttribute]
static Task<bool>^ SetMainFrameDocumentContentAsync(
IChromiumWebBrowserBase^ chromiumWebBrowser,
String^ html
)
Parameters
- chromiumWebBrowser IChromiumWebBrowserBase
- ChromiumWebBrowser instance
- html String
- html
Return Value
TaskBooleanTask that can be awaited to determine if the content was successfully updated.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IChromiumWebBrowserBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also