Table of Contents

Class RemoteReference

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Object containing a remote reference.

[JsonDerivedType(typeof(RemoteObjectReference))]
[JsonDerivedType(typeof(SharedReference))]
public record RemoteReference : LocalValue, IEquatable<LocalValue>, IEquatable<RemoteReference>
Inheritance
RemoteReference
Implements
Derived
Inherited Members

Constructors

RemoteReference()

Initializes a new instance of the RemoteReference class.

protected RemoteReference()

RemoteReference(RemoteReference)

protected RemoteReference(RemoteReference original)

Parameters

original RemoteReference

Properties

AdditionalData

Gets the dictionary of additional data about the remote reference.

[JsonExtensionData]
public Dictionary<string, object?> AdditionalData { get; }

Property Value

Dictionary<string, object>

Remarks

An entry may not reuse the name of a property this type already serializes; doing so would write that name twice in the same JSON object, and a JSON object with a duplicate name has no defined meaning. Sending a command that contains such an entry throws WebDriverBiDiSerializationException rather than emitting the ambiguous payload. Set the typed property instead.

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(LocalValue?)

public override sealed bool Equals(LocalValue? other)

Parameters

other LocalValue

Returns

bool

Equals(RemoteReference?)

public virtual bool Equals(RemoteReference? other)

Parameters

other RemoteReference

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RemoteReference?, RemoteReference?)

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

Parameters

left RemoteReference
right RemoteReference

Returns

bool

operator !=(RemoteReference?, RemoteReference?)

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

Parameters

left RemoteReference
right RemoteReference

Returns

bool