Network​Usage Network​Usage Network​Usage Class

Definition

public sealed class NetworkUsage : INetworkUsagepublic sealed class NetworkUsage : INetworkUsagePublic NotInheritable Class NetworkUsage Implements INetworkUsage
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

BytesReceived BytesReceived BytesReceived

Indicates the number of bytes received by the connection of a specific period of time.

public ulong BytesReceived { get; }public ulong BytesReceived { get; }Public ReadOnly Property BytesReceived As ulong
Value
ulong ulong ulong

The number of bytes received.

Attributes

BytesSent BytesSent BytesSent

Indicates the number of bytes sent by a connection over a specific period of time.

public ulong BytesSent { get; }public ulong BytesSent { get; }Public ReadOnly Property BytesSent As ulong
Value
ulong ulong ulong

The number of bytes sent.

Attributes

ConnectionDuration ConnectionDuration ConnectionDuration

Indicates the duration of connectivity.

public TimeSpan ConnectionDuration { get; }public TimeSpan ConnectionDuration { get; }Public ReadOnly Property ConnectionDuration As TimeSpan
Value
TimeSpan TimeSpan TimeSpan

The period of time that represents the duration of connectivity.

Attributes