Table of Contents

Class ProxyConfigurationResult

Namespace
WebDriverBiDi.Session
Assembly
WebDriverBiDi.dll

Object representing a read-only proxy settings object that is being used by the browser in this session.

public record ProxyConfigurationResult : IEquatable<ProxyConfigurationResult>
Inheritance
ProxyConfigurationResult
Implements
Derived
Inherited Members

Constructors

ProxyConfigurationResult(ProxyConfigurationResult)

protected ProxyConfigurationResult(ProxyConfigurationResult original)

Parameters

original ProxyConfigurationResult

Properties

AdditionalData

Gets a read-only dictionary of additional properties deserialized with this proxy result.

public ReceivedDataDictionary AdditionalData { get; }

Property Value

ReceivedDataDictionary

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ProxyType

Gets the type of proxy configuration.

public ProxyType ProxyType { get; }

Property Value

ProxyType

Methods

As<T>()

Casts this ProxyConfigurationResult to a type-specific proxy configuration result, throwing if it is not of that type. Use TryAs<T>(out T?) to test without throwing.

public T As<T>() where T : ProxyConfigurationResult

Returns

T

This instance cast to the specified correct type.

Type Parameters

T

A ProxyConfigurationResult type to cast to.

Exceptions

WebDriverBiDiException

Thrown if this ProxyConfigurationResult is not the specified type.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ProxyConfigurationResult?)

public virtual bool Equals(ProxyConfigurationResult? other)

Parameters

other ProxyConfigurationResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ProxyConfigurationAs<T>()

Gets the underlying proxy configuration as the type-specific proxy configuration type.

protected T ProxyConfigurationAs<T>() where T : ProxyConfiguration

Returns

T

The proxy configuration as the type-specific proxy configuration type.

Type Parameters

T

A ProxyConfiguration type.

ToString()

public override string ToString()

Returns

string

TryAs<T>(out T?)

Attempts to cast this ProxyConfigurationResult to a type-specific proxy configuration result, returning false rather than throwing when it is not of that type.

public bool TryAs<T>(out T? result) where T : ProxyConfigurationResult

Parameters

result T

When this method returns, contains the cast value or null if the cast failed.

Returns

bool

true if the cast was successful; otherwise, false.

Type Parameters

T

The specific type of ProxyConfigurationResult to return.

Operators

operator ==(ProxyConfigurationResult?, ProxyConfigurationResult?)

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

Parameters

left ProxyConfigurationResult
right ProxyConfigurationResult

Returns

bool

operator !=(ProxyConfigurationResult?, ProxyConfigurationResult?)

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

Parameters

left ProxyConfigurationResult
right ProxyConfigurationResult

Returns

bool