NetworkUsage
NetworkUsage
NetworkUsage
NetworkUsage
Class
Definition
Represents network usage statistics returned by the ConnectionProfile.@Windows.Networking.Connectivity.ConnectionProfile.GetNetworkUsageAsync(Windows.Foundation.DateTime,Windows.Foundation.DateTime,Windows.Networking.Connectivity.DataUsageGranularity,Windows.Networking.Connectivity.NetworkUsageStates)?text=GetNetworkUsageAsync method.
public : sealed class NetworkUsage : INetworkUsagepublic sealed class NetworkUsage : INetworkUsagePublic NotInheritable Class NetworkUsage Implements INetworkUsage// You can use this class in JavaScript.
- 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 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// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The number of bytes received.
BytesSent 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// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The number of bytes sent.
ConnectionDuration ConnectionDuration ConnectionDuration ConnectionDuration
Indicates the duration of connectivity.
public : TimeSpan ConnectionDuration { get; }public TimeSpan ConnectionDuration { get; }Public ReadOnly Property ConnectionDuration As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The period of time that represents the duration of connectivity.