ProviderNetworkUsage ProviderNetworkUsage ProviderNetworkUsage ProviderNetworkUsage Class

Definition

public : sealed class ProviderNetworkUsage : IProviderNetworkUsage
public sealed class ProviderNetworkUsage : IProviderNetworkUsage
Public NotInheritable Class ProviderNetworkUsage Implements IProviderNetworkUsage
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Properties

BytesReceived BytesReceived BytesReceived BytesReceived

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
var ulong = providerNetworkUsage.bytesReceived;
Value
ulong ulong ulong ulong

The number of bytes received.

BytesSent BytesSent BytesSent BytesSent

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
var ulong = providerNetworkUsage.bytesSent;
Value
ulong ulong ulong ulong

The number of bytes sent.

ProviderId ProviderId ProviderId ProviderId

Gets the ProviderId (a combination of MCC and MNC).

public : Platform::String ProviderId { get; }
public string ProviderId { get; }
Public ReadOnly Property ProviderId As string
var string = providerNetworkUsage.providerId;
Value
Platform::String string string string

The ProviderId (a combination of MCC and MNC).

Remarks

The MCC/MNC combo is expressed in the API as a single numeric (0-9) string named ProviderId that is a concatenation of a 3-digit MCC and a 2 or 3-digit MNC to be compliant with E.212.