Click or drag to resize
IPluginHandlerOnBeforePluginLoad Method
Version 51.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: 51.0.0.0 (51.0.0.0)
Syntax
bool OnBeforePluginLoad(
	string mimeType,
	string url,
	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
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