Click or drag to resize

JavascriptMessageReceivedEventArgs Class

Version 118.6.80
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: 118.6.80.0 (118.6.80.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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates 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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also