| ChromiumWebBrowserRegisterJsObject Method | 
Version 51.0.0
            Registers a Javascript object in this specific browser instance.
            
 
Namespace: CefSharp.WinFormsAssembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 51.0.0.0 (51.0.0.0)
 Syntax
Syntaxpublic void RegisterJsObject(
	string name,
	Object objectToBind,
	bool camelCaseJavascriptNames = true
)
public:
virtual void RegisterJsObject(
	String^ name, 
	Object^ objectToBind, 
	bool camelCaseJavascriptNames = true
) sealed
Parameters
- name
- Type: SystemString
 The name of the object. (e.g. "foo", if you want the object to be accessible as window.foo).
- objectToBind
- Type: SystemObject
 The object to be made accessible to Javascript.
- camelCaseJavascriptNames (Optional)
- Type: SystemBoolean
 camel case the javascript names of properties/methods, defaults to true
Implements
IWebBrowserRegisterJsObject(String, Object, Boolean) Exceptions
Exceptions| Exception | Condition | 
|---|
| Exception | Browser is already initialized. RegisterJsObject must be +
                                                called before the underlying CEF browser is created. | 
 See Also
See Also