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
originalRemoteReference
Properties
AdditionalData
Gets the dictionary of additional data about the remote reference.
[JsonExtensionData]
public Dictionary<string, object?> AdditionalData { get; }
Property Value
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
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(LocalValue?)
public override sealed bool Equals(LocalValue? other)
Parameters
otherLocalValue
Returns
Equals(RemoteReference?)
public virtual bool Equals(RemoteReference? other)
Parameters
otherRemoteReference
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RemoteReference?, RemoteReference?)
public static bool operator ==(RemoteReference? left, RemoteReference? right)
Parameters
leftRemoteReferencerightRemoteReference
Returns
operator !=(RemoteReference?, RemoteReference?)
public static bool operator !=(RemoteReference? left, RemoteReference? right)
Parameters
leftRemoteReferencerightRemoteReference