ConnectionCost
ConnectionCost
ConnectionCost
ConnectionCost
ConnectionCost
Class
Definition
Provides access to property values that indicate the current cost of a network connection.
public : sealed class ConnectionCost : IConnectionCost, IConnectionCost2
struct winrt::Windows::Networking::Connectivity::ConnectionCost : IConnectionCost, IConnectionCost2
public sealed class ConnectionCost : IConnectionCost, IConnectionCost2
Public NotInheritable Class ConnectionCost Implements IConnectionCost, IConnectionCost2
// This class does not provide a public constructor.
- Attributes
Device family |
Windows 10 (introduced v10.0.10240.0)
|
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.
On Windows Phone 8.1 the Roaming property indicates roaming for international roaming only.
Properties
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. |