Share via


ProfileUsage Struct

Definition

Used to update the usage of plan data.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct ProfileUsage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct ProfileUsage
var profileUsage = {
usageInMegabytes : /* Your value */,
lastSyncTime : /* Your value */
}
Public Structure ProfileUsage
Inheritance
ProfileUsage
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)
App capabilities
cellularDeviceControl cellularDeviceIdentity

Fields

LastSyncTime

The last time UsageInMegabytes was updated.

UsageInMegabytes

Updates the usage in megabytes.

Applies to