DataPlanUsage DataPlanUsage DataPlanUsage DataPlanUsage Class

Definition

Represents data plan specific data usage information for a connection.

public : sealed class DataPlanUsage : IDataPlanUsagepublic sealed class DataPlanUsage : IDataPlanUsagePublic NotInheritable Class DataPlanUsage Implements IDataPlanUsage// You can use this class in JavaScript.
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

For more information on using cost data to manage connectivity, see Quickstart: Managing metered network cost constraints.

Properties

LastSyncTime LastSyncTime LastSyncTime LastSyncTime

Gets a DateTime object indicating the date and time when the MegabytesUsed property was last updated.

public : DateTime LastSyncTime { get; }public DateTimeOffset LastSyncTime { get; }Public ReadOnly Property LastSyncTime As DateTimeOffset// You can use this property in JavaScript.
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The date and time when the MegabytesUsed property was last updated.

MegabytesUsed MegabytesUsed MegabytesUsed MegabytesUsed

Gets a value indicating the total amount of data transferred, in megabytes, over the connection.

public : unsigned int MegabytesUsed { get; }public uint MegabytesUsed { get; }Public ReadOnly Property MegabytesUsed As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of megabytes of data transferred.

See Also