Click or drag to resize

CefRuntime Class

Version 101.0.180
CefRuntime - Used to simplify loading of the CefSharp architecture specific resources. Typical use case would be when you are targeting AnyCPU
Inheritance Hierarchy
SystemObject
  CefSharpCefRuntime

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public static class CefRuntime

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