AttributedNetworkUsage class

Applies to Windows Phone only

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

Syntax


var attributedNetworkUsage = ConnectionProfile.GetAttributedNetworkUsageAsync();

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The AttributedNetworkUsage class has these types of members:

Methods

The AttributedNetworkUsage class inherits methods from the Object class (C#/VB/C++).

Properties

The AttributedNetworkUsage class has these properties.

PropertyAccess typeDescription

AttributionId

Read-onlyGets the Id of the of the app.

AttributionName

Read-onlyGets the name of the app.

AttributionThumbnail

Read-onlyGets the thumbnail of the app.

BytesReceived

Read-onlyGets the number of bytes received by the app over the network.

BytesSent

Read-onlyGets the number of bytes sent by the app over the network.

 

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.

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft