AttributedNetworkUsage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to property values containing information on current usage of the attributed network connection.
public ref class AttributedNetworkUsage sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AttributedNetworkUsage final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AttributedNetworkUsage
Public NotInheritable Class AttributedNetworkUsage
- Inheritance
- 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)
|
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 |
Gets the Id of the app. |
AttributionName |
Gets the name of the app. |
AttributionThumbnail |
Gets the thumbnail of the app. |
BytesReceived |
Gets the number of bytes received by the app over the network. |
BytesSent |
Gets the number of bytes sent by the app over the network. |