Data​Plan​Usage Data​Plan​Usage Data​Plan​Usage Class


Represents data plan specific data usage information for a connection.

public : sealed class DataPlanUsage : IDataPlanUsagepublic sealed class DataPlanUsage : IDataPlanUsagePublic NotInheritable Class DataPlanUsage Implements IDataPlanUsage
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)


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


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
DateTime DateTimeOffset DateTimeOffset

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


MegabytesUsed MegabytesUsed MegabytesUsed

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

public : unsigned short MegabytesUsed { get; }public uint MegabytesUsed { get; }Public ReadOnly Property MegabytesUsed As uint
unsigned short uint uint

The number of megabytes of data transferred.


See Also