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
| Name | Description |
|---|---|
| NetworkConnectionStatus() |
NetworkConnectionStatus()
NetworkInformation.cspublic NetworkConnectionStatus()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | 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). |
| Downlink | Gets 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. |
| DownlinkMax | 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. |
| EffectiveType | Gets the effective type of the connection. The default is EffectiveConnectionType.Cellular4G. |
| RoundTripTime | 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. |
| Type | Gets the type of the connection. The default is ConnectionType.Unknown. |
Default
NetworkInformation.csGets 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; }Property value
Downlink
NetworkInformation.csDownlinkMax
NetworkInformation.csEffectiveType
NetworkInformation.csGets the effective type of the connection. The default is EffectiveConnectionType.Cellular4G.
public EffectiveConnectionType EffectiveType { get; init; }Property value
RoundTripTime
NetworkInformation.csGets the type of the connection. The default is ConnectionType.Unknown.
public ConnectionType Type { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Equals(NetworkConnectionStatus?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(NetworkConnectionStatus?)
public bool Equals(NetworkConnectionStatus? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| 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.