AttributedNetworkUsage class

AttributedNetworkUsage class

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

Syntax


var attributedNetworkUsage = connectionProfile.getAttributedNetworkUsageAsync();

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-only

Gets the Id of the of the app.

AttributionName

Read-only

Gets the name of the app.

AttributionThumbnail

Read-only

Gets the thumbnail of the app.

BytesReceived

Read-only

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

BytesSent

Read-only

Gets 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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

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

Attributes

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

See also

ConnectionProfile
GetAttributedNetworkUsageAsync
Object

 

 

Show:
© 2016 Microsoft