ConnectionCost class
Provides access to property values that indicate the current cost of a network connection.
Syntax
var connectionCost = getConnectionCost();
Attributes
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- VersionAttribute(NTDDI_WIN8)
Members
The ConnectionCost class has these types of members:
Methods
The ConnectionCost class inherits methods from the Object class (C#/VB/C++).
Properties
The ConnectionCost class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets a value that indicates if a connection is approaching the data usage allowance specified by the data plan. | |
| Read-only | Gets a value that indicates the current network cost for a connection. | |
| Read-only | Gets a value that indicates if the connection has exceeded the data usage allowance specified by the data plan. | |
| Read-only | Gets a value that indicates whether the connection is connected to a network outside of the home provider. |
Remarks
For more information on using cost data to manage connectivity, see Quickstart: Managing metered network cost constraints.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | None supported [Windows Store apps, desktop apps] |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 2/25/2013
