ConnectionCost ConnectionCost ConnectionCost ConnectionCost ConnectionCost Class


Provides access to property values that indicate the current cost of a network connection.

public : sealed class ConnectionCost
struct winrt::Windows::Networking::Connectivity::ConnectionCost
public sealed class ConnectionCost
Public NotInheritable Class ConnectionCost
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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

On Windows Phone 8.1 the Roaming property indicates roaming for international roaming only.


ApproachingDataLimit ApproachingDataLimit ApproachingDataLimit ApproachingDataLimit ApproachingDataLimit

Gets a value that indicates if a connection is approaching the data usage allowance specified by the data plan.

BackgroundDataUsageRestricted BackgroundDataUsageRestricted BackgroundDataUsageRestricted BackgroundDataUsageRestricted BackgroundDataUsageRestricted

Gets a value that indicates whether background data usage has been restricted.

NetworkCostType NetworkCostType NetworkCostType NetworkCostType NetworkCostType

Gets a value that indicates the current network cost for a connection.

OverDataLimit OverDataLimit OverDataLimit OverDataLimit OverDataLimit

Gets a value that indicates if the connection has exceeded the data usage allowance specified by the data plan.

Roaming Roaming Roaming Roaming Roaming

Gets a value that indicates whether the connection is connected to a network outside of the home provider.

See also