DataUsage
DataUsage
DataUsage
DataUsage
Class
Definition
Note
DataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use NetworkUsage
Represents data usage information returned by the ConnectionProfile.GetLocalUsage method.
public : sealed class DataUsage : IDataUsagepublic sealed class DataUsage : IDataUsagePublic NotInheritable Class DataUsage Implements IDataUsage// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
For more information on using cost data to manage connectivity, see Quickstart: Managing metered network cost constraints.
Properties
BytesReceived BytesReceived BytesReceived BytesReceived
Note
DataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use NetworkUsage
Gets a value indicating the number of bytes received by a connection over 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
Note
DataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use NetworkUsage
Gets a value indicating the number of bytes sent by the 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.