DataPlanUsage DataPlanUsage DataPlanUsage DataPlanUsage Class

Represents data plan specific data usage information for a connection.

Syntax

Declaration

public sealed class DataPlanUsagepublic sealed class DataPlanUsagePublic NotInheritable Class DataPlanUsagepublic sealed class DataPlanUsage

Remarks

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

Properties summary

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

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

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 DateTimeOffsetpublic DateTime LastSyncTime { get; }

    Property Value

  • MegabytesUsed
    MegabytesUsed
    MegabytesUsed
    MegabytesUsed

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

    public uint MegabytesUsed { get; }public uint MegabytesUsed { get; }Public ReadOnly Property MegabytesUsed As uintpublic uint MegabytesUsed { get; }

    Property Value

    • uint
      uint
      uint
      uint

      The number of megabytes of data transferred.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Networking.Connectivity.dll