DevToolsExtensions.SetMainFrameDocumentContentAsync Method (IChromiumWebBrowserBase, String) (original) (raw)

DevToolsExtensionsSetMainFrameDocumentContentAsync Method (IChromiumWebBrowserBase, String)

Version 118.6.80

Set the Document Content for the Main Frame using DevTools Protocol.

Namespace: CefSharp
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.0

Syntax

public static Task SetMainFrameDocumentContentAsync( this IChromiumWebBrowserBase chromiumWebBrowser, string html )

public: [ExtensionAttribute] static Task^ SetMainFrameDocumentContentAsync( IChromiumWebBrowserBase^ chromiumWebBrowser, String^ html )

Parameters

chromiumWebBrowser

Type: CefSharpIChromiumWebBrowserBase
ChromiumWebBrowser instance

html

Type: SystemString
html

Return Value

Type: TaskBoolean
Task 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

Reference