Table of Contents

Class PerformanceEventTiming

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The PerformanceEventTiming interface of the Event Timing API provides insights into the latency of certain event types triggered by user interaction.

[Value("PerformanceEventTiming")]
public class PerformanceEventTiming : PerformanceEntry
Inheritance
PerformanceEventTiming
Inherited Members

Remarks

Constructors

PerformanceEventTiming()

public PerformanceEventTiming()

Properties

Cancelable

The read-only cancelable property returns the associated event's cancelable property, indicating whether the event can be canceled.

[Value("cancelable")]
public bool Cancelable { get; }

Property Value

bool

A boolean. true if the associated event is cancelable, false otherwise.

Remarks

InteractionId

NOTE
Experimental
The read-only interactionId property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
[Value("interactionId")]
public ulong InteractionId { get; }

Property Value

ulong

A number.

Remarks

ProcessingEnd

The read-only processingEnd property returns the time the last event handler finished executing.

[Value("processingEnd")]
public Number ProcessingEnd { get; }

Property Value

Number

A Number timestamp.

Remarks

It's equal to ProcessingStart when there are no such event handlers.

-ProcessingStart

See also on MDN

ProcessingStart

The read-only processingStart property returns the time at which event dispatch started. This is when event handlers are about to be executed.

[Value("processingStart")]
public Number ProcessingStart { get; }

Property Value

Number

A Number timestamp.

Remarks

Target

The read-only target property returns the associated event's last target which is the node onto which the event was last dispatched.

[Value("target")]
public Node? Target { get; }

Property Value

Node

A Node onto which the event was last dispatched.Or null if the Node is disconnected from the document's DOM or is in the shadow DOM.

Remarks

Methods

ToJSON()

The toJSON() method of the PerformanceEventTiming interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the PerformanceEventTiming object.

[Value("toJSON")]
public Object ToJSON()

Returns

Object

A {{jsxref("JSON")}} object that is the serialization of the PerformanceEventTiming object.The JSON doesn't contain the Target property because it is of type Node, which doesn't provide a toJSON() operation.

Remarks