Click or drag to resize

CefRuntime Methods

Version 91.1.160

The CefRuntime type exposes the following members.

Methods
  NameDescription
Public methodStatic memberLoadCefSharpCoreRuntimeAnyCpu
When using AnyCPU the architecture specific version of CefSharp.Core.Runtime.dll needs to be loaded (x64/x86). This method calls LoadFile(String) to immediately load CefSharp.Core.Runtime.dll based on Is64BitProcess. This method MUST be called before you call Cef.Initialize, create your first ChromiumWebBrowser instance, basically before anything CefSharp related happens. This method is part of CefSharp.dll which is an AnyCPU library and doesn't have any references to the CefSharp.Core.Runtime.dll so it's safe to use.
Public methodStatic memberSubscribeAnyCpuAssemblyResolver
When using AnyCPU the architecture specific version of CefSharp.Core.Runtime.dll needs to be loaded (x64/x86). This method subscribes to the AssemblyResolve event for CurrentDomain and loads the CefSharp.Core.Runtime.dll based on Is64BitProcess. This method MUST be called before you call Cef.Initialize, create your first ChromiumWebBrowser instance, basically before anything CefSharp related happens. This method is part of CefSharp.dll which is an AnyCPU library and doesn't have any references to the CefSharp.Core.Runtime.dll so it's safe to use.
Public methodStatic memberUnsubscribeAnyCpuAssemblyResolver
Unsubscribe from the AssemblyResolve event for CurrentDomain that was added in [!:UseAnyCpuAssemblyResolver]
Top
See Also