Data​Plan​Usage Data​Plan​Usage Data​Plan​Usage 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
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

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

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

Attributes

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
Value
uint uint uint

The number of megabytes of data transferred.

Attributes

See Also