Click or drag to resize

IRequestContextHandlerOnBeforePluginLoad Method

Version 71.0.0
Called on the CEF IO thread before a plugin instance is loaded. The default plugin policy can be set at runtime using the `--plugin-policy=[allow|detect|block]` command-line flag.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 71.0.0.0 (71.0.0.0)
Syntax
bool OnBeforePluginLoad(
	string mimeType,
	string url,
	bool isMainFrame,
	string topOriginUrl,
	WebPluginInfo pluginInfo,
	ref PluginPolicy pluginPolicy
)

Parameters

mimeType
Type: SystemString
is the mime type of the plugin that will be loaded
url
Type: SystemString
is the content URL that the plugin will load and may be empty
isMainFrame
Type: SystemBoolean
will be true if the plugin is being loaded in the main (top-level) frame
topOriginUrl
Type: SystemString
is the URL for the top-level frame that contains the plugin
pluginInfo
Type: CefSharpWebPluginInfo
includes additional information about the plugin that will be loaded
pluginPolicy
Type: CefSharpPluginPolicy
Modify and return true to change the policy.

Return Value

Type: Boolean
Return false to use the recommended policy. Modify and return true to change the policy.
See Also