Click or drag to resize

RequestContextGetExtension Method

Version 75.1.140
Returns the extension matching extensionId or null if no matching extension is accessible in this context (see HasExtension). This method must be called on the CEF UI thread.

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 75.1.140.0
Syntax
public virtual IExtension GetExtension(
	string extensionId
)

Parameters

extensionId
Type: SystemString
extension Id

Return Value

Type: IExtension
Returns the extension matching extensionId or null if no matching extension is accessible in this context

Implements

IRequestContextGetExtension(String)
Remarks
Use Cef.UIThreadTaskFactory to execute this method if required, [!:IBrowserProcessHandler.OnContextInitialized] and ChromiumWebBrowser.IsBrowserInitializedChanged are both executed on the CEF UI thread, so can be called directly. When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main application thread will be the CEF UI thread.
See Also