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 : IAttributedNetworkUsage
public sealed class AttributedNetworkUsage : IAttributedNetworkUsage
Public NotInheritable Class AttributedNetworkUsage Implements IAttributedNetworkUsage
// This class does not provide a public constructor.
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 8.x 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
var string = attributedNetworkUsage.attributionId;
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
var string = attributedNetworkUsage.attributionName;
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
var iRandomAccessStreamReference = attributedNetworkUsage.attributionThumbnail;

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

The number of bytes sent by the app.