ConnectionCost class

Applies to Windows and Windows Phone

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

Syntax


public ref class ConnectionCost sealed 

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

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.

PropertyAccess typeDescription

ApproachingDataLimit

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

NetworkCostType

Read-onlyGets a value that indicates the current network cost for a connection.

OverDataLimit

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

Roaming

Read-onlyGets 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

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

Quickstart: Managing metered network cost constraints

 

 

Show:
© 2014 Microsoft. All rights reserved.