RequestContextHasExtension Method |
Version 73.1.130
Returns true if this context has access to the extension identified by extensionId.
This may not be the context that was used to load the extension (see DidLoadExtension).
This method must be called on the CEF UI thread.
Namespace:
CefSharp
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 73.1.130.0
Syntax public virtual bool HasExtension(
string extensionId
)
public:
virtual bool HasExtension(
String^ extensionId
)
Parameters
- extensionId
- Type: SystemString
extension id
Return Value
Type:
BooleanReturns true if this context has access to the extension identified by extensionId
Implements
IRequestContextHasExtension(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