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
originalProxyConfigurationResult
Properties
AdditionalData
Gets a read-only dictionary of additional properties deserialized with this proxy result.
public ReceivedDataDictionary AdditionalData { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ProxyType
Gets the type of proxy configuration.
public ProxyType ProxyType { get; }
Property Value
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
TA 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
objobject
Returns
Equals(ProxyConfigurationResult?)
public virtual bool Equals(ProxyConfigurationResult? other)
Parameters
otherProxyConfigurationResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
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
TA ProxyConfiguration type.
ToString()
public override string ToString()
Returns
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
resultTWhen this method returns, contains the cast value or null if the cast failed.
Returns
Type Parameters
TThe specific type of ProxyConfigurationResult to return.
Operators
operator ==(ProxyConfigurationResult?, ProxyConfigurationResult?)
public static bool operator ==(ProxyConfigurationResult? left, ProxyConfigurationResult? right)
Parameters
leftProxyConfigurationResultrightProxyConfigurationResult
Returns
operator !=(ProxyConfigurationResult?, ProxyConfigurationResult?)
public static bool operator !=(ProxyConfigurationResult? left, ProxyConfigurationResult? right)
Parameters
leftProxyConfigurationResultrightProxyConfigurationResult