Dela via


ConnectionCost Class

Definition

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

public ref class ConnectionCost sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ConnectionCost final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ConnectionCost
Public NotInheritable Class ConnectionCost
Inheritance
Object Platform::Object IInspectable ConnectionCost
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

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

BackgroundDataUsageRestricted

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

NetworkCostType

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

OverDataLimit

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

Roaming

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

Applies to

See also