Share via


NetworkCostType Enum

Definition

Defines the network cost types.

public enum class NetworkCostType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class NetworkCostType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum NetworkCostType
var value = Windows.Networking.Connectivity.NetworkCostType.unknown
Public Enum NetworkCostType
Inheritance
NetworkCostType
Attributes

Windows requirements

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

Fields

Name Value Description
Unknown 0

Cost information is not available.

Unrestricted 1

The connection is unlimited and has unrestricted usage charges and capacity constraints.

Fixed 2

The use of this connection is unrestricted up to a specific limit.

Variable 3

The connection is costed on a per-byte basis.

Remarks

For examples of how these values are used in cost-based connection scenarios, see Quickstart: Managing metered network cost constraints.

Applies to

See also