NetworkConnectionStatus Class

The state of the network connection of the device (https://wicg.github.io/netinfo/#networkinformation-interface), returned by a NetworkInformationProvider.

public sealed class NetworkConnectionStatus : IEquatable<NetworkConnectionStatus>
Implements

Constructors

NameDescription
NetworkConnectionStatus()

NetworkConnectionStatus()

NetworkInformation.cs
public NetworkConnectionStatus()

No documentation is available.

Properties

NameDescription
DefaultGets the status reported when the user agent does not know the connection: an unknown type, and the performance of a 4G connection (10 Mbit/s, 50 ms).
DownlinkGets the effective bandwidth of the connection, in megabits per second. The documents see it rounded to a multiple of 50 kilobits per second, 10 megabits per second at most (as in Chromium), to reduce fingerprinting. The default is 10.
DownlinkMaxGets the maximum bandwidth of the underlying connection technology, in megabits per second, or null when it is unknown (the documents see Infinity). The default is null.
EffectiveTypeGets the effective type of the connection. The default is EffectiveConnectionType.Cellular4G.
RoundTripTimeGets the effective round-trip time of the connection. The documents see it rounded to a multiple of 50 milliseconds, 3 seconds at most (as in Chromium). The default is 50 milliseconds.
TypeGets the type of the connection. The default is ConnectionType.Unknown.

Gets the status reported when the user agent does not know the connection: an unknown type, and the performance of a 4G connection (10 Mbit/s, 50 ms).

public static NetworkConnectionStatus Default { get; }

Gets the maximum bandwidth of the underlying connection technology, in megabits per second, or null when it is unknown (the documents see Infinity). The default is null.

public double? DownlinkMax { get; init; }

Property value

double?

Gets the effective type of the connection. The default is EffectiveConnectionType.Cellular4G.

public EffectiveConnectionType EffectiveType { get; init; }

Gets the effective round-trip time of the connection. The documents see it rounded to a multiple of 50 milliseconds, 3 seconds at most (as in Chromium). The default is 50 milliseconds.

public TimeSpan RoundTripTime { get; init; }

Property value

TimeSpan

Gets the type of the connection. The default is ConnectionType.Unknown.

public ConnectionType Type { get; init; }

Property value

ConnectionType

Methods

NameDescription
Equals(NetworkConnectionStatus?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(NetworkConnectionStatus?)

public bool Equals(NetworkConnectionStatus? other)
Parameters
other NetworkConnectionStatus?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(NetworkConnectionStatus?, NetworkConnectionStatus?)
operator !=(NetworkConnectionStatus?, NetworkConnectionStatus?)

operator ==(NetworkConnectionStatus?, NetworkConnectionStatus?)

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

No documentation is available.

operator !=(NetworkConnectionStatus?, NetworkConnectionStatus?)

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

No documentation is available.