Share via


NetworkUsage Class

Definition

Represents network usage statistics returned by the ConnectionProfile.GetNetworkUsageAsync method.

public ref class NetworkUsage sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NetworkUsage final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NetworkUsage
Public NotInheritable Class NetworkUsage
Inheritance
Object Platform::Object IInspectable NetworkUsage
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

BytesReceived

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

BytesSent

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

ConnectionDuration

Indicates the duration of connectivity.

Applies to