Table of Contents

Class BooleanRemoteValue

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Represents a remote value for a boolean, providing type-safe access to the value and the ability to convert to a local value for use as an argument for script execution on the remote end.

public record BooleanRemoteValue : ValueHoldingRemoteValue<bool>, IEquatable<RemoteValue>, IEquatable<ValueHoldingRemoteValue>, ITypeSafeRemoteValue<bool>, IEquatable<ValueHoldingRemoteValue<bool>>, IEquatable<BooleanRemoteValue>
Inheritance
BooleanRemoteValue
Implements
Inherited Members

Constructors

BooleanRemoteValue(BooleanRemoteValue)

protected BooleanRemoteValue(BooleanRemoteValue original)

Parameters

original BooleanRemoteValue

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Value

Gets a value indicating whether the boolean value of this remote value is true.

[JsonPropertyName("value")]
[JsonInclude]
[JsonRequired]
public override bool Value { get; }

Property Value

bool

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BooleanRemoteValue?)

public virtual bool Equals(BooleanRemoteValue? other)

Parameters

other BooleanRemoteValue

Returns

bool

Equals(ValueHoldingRemoteValue<bool>?)

public override sealed bool Equals(ValueHoldingRemoteValue<bool>? other)

Parameters

other ValueHoldingRemoteValue<bool>

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

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 boolean value.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BooleanRemoteValue?, BooleanRemoteValue?)

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

Parameters

left BooleanRemoteValue
right BooleanRemoteValue

Returns

bool

implicit operator bool(BooleanRemoteValue)

Defines an implicit conversion from a BooleanRemoteValue to a bool, allowing for easy access to the boolean value of this remote value.

public static implicit operator bool(BooleanRemoteValue value)

Parameters

value BooleanRemoteValue

The boolean remote value.

Returns

bool

operator !=(BooleanRemoteValue?, BooleanRemoteValue?)

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

Parameters

left BooleanRemoteValue
right BooleanRemoteValue

Returns

bool