Table of Contents

Class TaskAttributionTiming

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The TaskAttributionTiming interface returns information about the work involved in a long task and its associate frame context. The frame context, also called the container, is the iframe, embed or object that is being implicated, on the whole, for a long task.
[Value("TaskAttributionTiming")]
public class TaskAttributionTiming : PerformanceEntry
Inheritance
TaskAttributionTiming
Inherited Members

Remarks

You usually work with TaskAttributionTiming objects when observing long tasks.

TaskAttributionTiming inherits from PerformanceEntry.

-PerformanceLongTaskTiming

See also on MDN

Constructors

TaskAttributionTiming()

public TaskAttributionTiming()

Properties

ContainerId

NOTE
Experimental
The containerId read-only property of the TaskAttributionTiming interface returns the container's id
attribute. A container is the iframe, embed or object etc. that is being implicated, on the whole, for a long task.
[Value("containerId")]
public string ContainerId { get; }

Property Value

string

A string containing the container's id HTML content attribute.

Remarks

ContainerName

NOTE
Experimental
The containerName read-only property of the TaskAttributionTiming interface returns the container's name
attribute. A container is the iframe, embed or object etc. that is being implicated, on the whole, for a long task.
[Value("containerName")]
public string ContainerName { get; }

Property Value

string

A string containing the container's name HTML content attribute (e.g., <iframe name="myIframe"> or <object name="myObject">).

Remarks

ContainerSrc

NOTE
Experimental
The containerSrc read-only property of the TaskAttributionTiming interface returns the container's src
attribute. A container is the iframe, embed or object etc. that is being implicated, on the whole, for a long task.
[Value("containerSrc")]
public string ContainerSrc { get; }

Property Value

string

A string containing the container's src attribute (e.g., <iframe src="url.html">).

Remarks

ContainerType

NOTE
Experimental
The containerType read-only property of the TaskAttributionTiming interface returns the type of the container, one of iframe, embed, or object.
[Value("containerType")]
public string ContainerType { get; }

Property Value

string

A string containing the container's type, one of iframe, embed, or object. If no type can be determined, window will be returned.

Remarks

Duration

[Value("duration")]
public Number Duration { get; }

Property Value

Number

EntryType

[Value("entryType")]
public string EntryType { get; }

Property Value

string

Name

[Value("name")]
public string Name { get; }

Property Value

string

StartTime

[Value("startTime")]
public Number StartTime { get; }

Property Value

Number

Methods

ToJSON()

NOTE
Experimental
The toJSON() method of the TaskAttributionTiming interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the TaskAttributionTiming object.
[Value("toJSON")]
public Object ToJSON()

Returns

Object

A {{jsxref("JSON")}} object that is the serialization of the TaskAttributionTiming object.

Remarks