RequestContextGetExtension Method |
Version 81.3.100
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: 81.3.100.0
Syntax public virtual IExtension GetExtension(
string extensionId
)
public:
virtual IExtension^ GetExtension(
String^ extensionId
)
Parameters
- extensionId
- Type: SystemString
extension Id
Return Value
Type:
IExtensionReturns 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