AttributedNetworkUsage AttributedNetworkUsage AttributedNetworkUsage AttributedNetworkUsage Class

Definition

Provides access to property values containing information on current usage of the attributed network connection.

public : sealed class AttributedNetworkUsage : IAttributedNetworkUsagepublic sealed class AttributedNetworkUsage : IAttributedNetworkUsagePublic NotInheritable Class AttributedNetworkUsage Implements IAttributedNetworkUsage// 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)

Remarks

The AttributedNetworkUsage class is retrieved from a ConnectionProfile by calling the GetAttributedNetworkUsageAsync method.

Note

Data usage tracking is not supported when an app is run on the emulator under Microsoft Visual Studio 2013 Update 2 instead of an actual device. As a result, the GetAttributedNetworkUsageAsync method in a Windows Phone Store app will fail when run on the emulator.

Properties

AttributionId AttributionId AttributionId AttributionId

Gets the Id of the of the app.

public : PlatForm::String AttributionId { get; }public string AttributionId { get; }Public ReadOnly Property AttributionId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The Id of the app.

AttributionName AttributionName AttributionName AttributionName

Gets the name of the app.

public : PlatForm::String AttributionName { get; }public string AttributionName { get; }Public ReadOnly Property AttributionName As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The name of the app.

AttributionThumbnail AttributionThumbnail AttributionThumbnail AttributionThumbnail

Gets the thumbnail of the app.

public : IRandomAccessStreamReference AttributionThumbnail { get; }public IRandomAccessStreamReference AttributionThumbnail { get; }Public ReadOnly Property AttributionThumbnail As IRandomAccessStreamReference// You can use this property in JavaScript.

BytesReceived BytesReceived BytesReceived BytesReceived

Gets the number of bytes received by the app over the network.

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 by the app.

BytesSent BytesSent BytesSent BytesSent

Gets the number of bytes sent by the app over the network.

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 by the app.