JsJobCallback Struct
A JobCallback Record (https://tc39.es/ecma262/#sec-jobcallback-records): a function and the host-defined state captured when it was registered.
public readonly struct JsJobCallback : IEquatable<JsJobCallback>- Implements
Constructors
| Name | Description |
|---|---|
| JsJobCallback(JsObject, object?) | Creates a JobCallback Record. |
JsJobCallback(JsObject, object?)
JsJob.csProperties
| Name | Description |
|---|---|
| Callback | Gets the function ([[Callback]]). |
| HostDefined | Gets the [[HostDefined]] value, captured by JsHost.MakeJobCallback. |
Callback
JsJob.csHostDefined
JsJob.csGets the [[HostDefined]] value, captured by JsHost.MakeJobCallback.
public object? HostDefined { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(JsJobCallback) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(JsJobCallback)
JsJob.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(JsJobCallback other)Parameters
otherJsJobCallback- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
JsJob.csGetHashCode()
JsJob.csOperators
| Name | Description |
|---|---|
| operator ==(JsJobCallback, JsJobCallback) | Compares two records. |
| operator !=(JsJobCallback, JsJobCallback) | Compares two records. |
operator ==(JsJobCallback, JsJobCallback)
JsJob.csCompares two records.
public static bool operator ==(JsJobCallback left, JsJobCallback right)operator !=(JsJobCallback, JsJobCallback)
JsJob.csCompares two records.
public static bool operator !=(JsJobCallback left, JsJobCallback right)