Click or drag to resize

JavascriptMessageReceivedEventArgs Class

Version 130.1.90
Calling CefSharp.PostMessage in Javascript triggers the JavascriptMessageReceived This event args contains the frame, browser and message corrisponding to that call
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    CefSharpJavascriptMessageReceivedEventArgs

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class JavascriptMessageReceivedEventArgs : EventArgs

The JavascriptMessageReceivedEventArgs type exposes the following members.

Constructors
 NameDescription
Public methodJavascriptMessageReceivedEventArgs Constructor.
Top
Properties
 NameDescription
Public propertyBrowser The browser that hosts the IFrame
Public propertyFrame The frame that called CefSharp.PostMessage in Javascript
Public propertyMessage Message can be a primative type or a simple object that represents a copy of the data sent from the browser
Top
Methods
 NameDescription
Public methodConvertMessageToT Converts the Message to a specific type using the DefaultBinder that CefSharp provides
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberSetBinder Provide a custom instance of IBinder that will be used when ConvertMessageToT is called. You may wish to provide a custom instance in cases where you wish to override the name conversion. e.g. You wish to convert names from camelCase
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also