JSInvocation Class

A call of a JavaScript function by a component.

public sealed class JSInvocation : IEquatable<JSInvocation>
Implements

Constructors

NameDescription
JSInvocation(string, IReadOnlyList<object?>, Type)A call of a JavaScript function by a component.

JSInvocation(string, IReadOnlyList<object?>, Type)

JSInvocation.cs

A call of a JavaScript function by a component.

public JSInvocation(string Identifier, IReadOnlyList<object?> Arguments, Type ResultType)

Parameters

Identifier string
The identifier of the function.
Arguments IReadOnlyList<object?>
The arguments, as the component passed them (an ElementReference is resolved with ComponentTestHost.GetElement).
ResultType Type
The type of the result the component expects (Object for a call without result).

Properties

NameDescription
ArgumentsThe arguments, as the component passed them (an ElementReference is resolved with ComponentTestHost.GetElement).
IdentifierThe identifier of the function.
ResultTypeThe type of the result the component expects (Object for a call without result).

The arguments, as the component passed them (an ElementReference is resolved with ComponentTestHost.GetElement).

public IReadOnlyList<object?> Arguments { get; init; }

Identifier

JSInvocation.cs

The identifier of the function.

public string Identifier { get; init; }

Property value

string

ResultType

JSInvocation.cs

The type of the result the component expects (Object for a call without result).

public Type ResultType { get; init; }

Property value

Type

Methods

NameDescription
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

Identifier string
Arguments IReadOnlyList<object?>
ResultType Type

No documentation is available.

Equals overloads

Equals(JSInvocation?)

public bool Equals(JSInvocation? other)
Parameters
other JSInvocation?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(JSInvocation?, JSInvocation?)
operator !=(JSInvocation?, JSInvocation?)

operator ==(JSInvocation?, JSInvocation?)

public static bool operator ==(JSInvocation? left, JSInvocation? right)

Parameters

left JSInvocation?
right JSInvocation?

Returns

bool

No documentation is available.

operator !=(JSInvocation?, JSInvocation?)

public static bool operator !=(JSInvocation? left, JSInvocation? right)

Parameters

left JSInvocation?
right JSInvocation?

Returns

bool

No documentation is available.