Class StringRemoteValue
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Represents a remote value for a string from the remote end, providing type-safe access to the string value and the ability to convert to a local value for use as an argument for script execution on the remote end.
public record StringRemoteValue : ValueHoldingRemoteValue<string>, IEquatable<RemoteValue>, IEquatable<ValueHoldingRemoteValue>, ITypeSafeRemoteValue<string>, IEquatable<ValueHoldingRemoteValue<string>>, IEquatable<StringRemoteValue>
- Inheritance
-
StringRemoteValue
- Implements
- Inherited Members
Constructors
StringRemoteValue(StringRemoteValue)
protected StringRemoteValue(StringRemoteValue original)
Parameters
originalStringRemoteValue
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Value
Gets the string value of this remote value.
[JsonPropertyName("value")]
[JsonInclude]
[JsonRequired]
public override string Value { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(StringRemoteValue?)
public virtual bool Equals(StringRemoteValue? other)
Parameters
otherStringRemoteValue
Returns
Equals(ValueHoldingRemoteValue<string>?)
public override sealed bool Equals(ValueHoldingRemoteValue<string>? other)
Parameters
otherValueHoldingRemoteValue<string>
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToLocalValue()
Converts this remote value to a local value for use as an argument for script execution on the remote end.
public override LocalValue ToLocalValue()
Returns
- LocalValue
A LocalValue representing the string value.
ToString()
public override string ToString()
Returns
Operators
operator ==(StringRemoteValue?, StringRemoteValue?)
public static bool operator ==(StringRemoteValue? left, StringRemoteValue? right)
Parameters
leftStringRemoteValuerightStringRemoteValue
Returns
implicit operator string(StringRemoteValue)
Defines an implicit conversion from a StringRemoteValue to a string, allowing for easy access to the string value of this remote value.
public static implicit operator string(StringRemoteValue value)
Parameters
valueStringRemoteValueThe value to convert.
Returns
operator !=(StringRemoteValue?, StringRemoteValue?)
public static bool operator !=(StringRemoteValue? left, StringRemoteValue? right)
Parameters
leftStringRemoteValuerightStringRemoteValue