Class LocalArgumentValue
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Represents a LocalValue for use as an argument in script execution, in particular, one built from local .NET data to be serialized to JSON according to the WebDriver BiDi protocol. Every such value has a type, but not every one has a value: Undefined and Null are represented by this class and carry no value. References to objects that already exist on the remote end, and channels, are represented by RemoteReference and ChannelValue.
public record LocalArgumentValue : LocalValue, IEquatable<LocalValue>, IEquatable<LocalArgumentValue>
- Inheritance
-
LocalArgumentValue
- Implements
- Inherited Members
Constructors
LocalArgumentValue(LocalArgumentValue)
protected LocalArgumentValue(LocalArgumentValue original)
Parameters
originalLocalArgumentValue
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Type
Gets the type of this LocalValue.
[JsonPropertyName("type")]
public string Type { get; }
Property Value
Value
Gets the object containing the value of this LocalValue.
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(LocalArgumentValue?)
public virtual bool Equals(LocalArgumentValue? other)
Parameters
otherLocalArgumentValue
Returns
Equals(LocalValue?)
public override sealed bool Equals(LocalValue? other)
Parameters
otherLocalValue
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 ==(LocalArgumentValue?, LocalArgumentValue?)
public static bool operator ==(LocalArgumentValue? left, LocalArgumentValue? right)
Parameters
leftLocalArgumentValuerightLocalArgumentValue
Returns
operator !=(LocalArgumentValue?, LocalArgumentValue?)
public static bool operator !=(LocalArgumentValue? left, LocalArgumentValue? right)
Parameters
leftLocalArgumentValuerightLocalArgumentValue