JSInvocation Class
A call of a JavaScript function by a component.
public sealed class JSInvocation : IEquatable<JSInvocation>- Implements
Constructors
| Name | Description |
|---|---|
| JSInvocation(string, IReadOnlyList<object?>, Type) | A call of a JavaScript function by a component. |
JSInvocation(string, IReadOnlyList<object?>, Type)
JSInvocation.csA call of a JavaScript function by a component.
public JSInvocation(string Identifier, IReadOnlyList<object?> Arguments, Type ResultType)Parameters
Identifierstring- The identifier of the function.
ArgumentsIReadOnlyList<object?>- The arguments, as the component passed them (an
ElementReferenceis resolved withComponentTestHost.GetElement). ResultTypeType- The type of the result the component expects (
Objectfor a call without result).
Properties
| Name | Description |
|---|---|
| Arguments | The arguments, as the component passed them (an ElementReference is resolved with ComponentTestHost.GetElement). |
| Identifier | The identifier of the function. |
| ResultType | The type of the result the component expects (Object for a call without result). |
Arguments
JSInvocation.csThe arguments, as the component passed them (an ElementReference is resolved with ComponentTestHost.GetElement).
public IReadOnlyList<object?> Arguments { get; init; }Property value
Identifier
JSInvocation.csResultType
JSInvocation.csMethods
| Name | Description |
|---|---|
| Deconstruct(string, IReadOnlyList<object?>, Type) | |
| Equals(JSInvocation?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string, IReadOnlyList<object?>, Type)
public void Deconstruct(out string Identifier, out IReadOnlyList<object?> Arguments, out Type ResultType)Parameters
IdentifierstringArgumentsIReadOnlyList<object?>ResultTypeType
No documentation is available.
Equals overloads
Equals(JSInvocation?)
public bool Equals(JSInvocation? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(JSInvocation?, JSInvocation?) | |
| operator !=(JSInvocation?, JSInvocation?) |
operator ==(JSInvocation?, JSInvocation?)
public static bool operator ==(JSInvocation? left, JSInvocation? right)No documentation is available.
operator !=(JSInvocation?, JSInvocation?)
public static bool operator !=(JSInvocation? left, JSInvocation? right)No documentation is available.