MessageEventInit Class
https://html.spec.whatwg.org/multipage/comms.html#messageeventinit
public sealed class MessageEventInit : EventInit- Inheritance
EventInitMessageEventInit
Constructors
| Name | Description |
|---|---|
| MessageEventInit() |
MessageEventInit()
HtmlEvents.cspublic MessageEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Data | Gets the data of the message. |
| LastEventId | Gets the last event ID of the event source that sent the message. |
| Origin | Gets the origin of the message sender. |
| Ports | Gets the message ports sent with the message. |
| Source | Gets the object that sent the message, such as a window or a message port. |
Data
HtmlEvents.csLastEventId
HtmlEvents.csGets the last event ID of the event source that sent the message.
public string LastEventId { get; init; }Property value
See also
Origin
HtmlEvents.csPorts
HtmlEvents.csGets the message ports sent with the message.
public IReadOnlyList<MessagePort> Ports { get; init; }Source
HtmlEvents.csGets the object that sent the message, such as a window or a message port.
public EventTarget? Source { get; init; }