DevToolsExtensionsSetMainFrameDocumentContentAsync Method (IBrowser, String) |
Version 99.2.120
Set the Document Content for the Main Frame using DevTools Protocol.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 99.2.120.0 (99.2.120.0)
Syntax public static Task<bool> SetMainFrameDocumentContentAsync(
this IBrowser browser,
string html
)
public:
[ExtensionAttribute]
static Task<bool>^ SetMainFrameDocumentContentAsync(
IBrowser^ browser,
String^ html
)
Parameters
- browser
- Type: CefSharpIBrowser
the browser instance - html
- Type: SystemString
html
Return Value
Type:
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
IBrowser. 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