NetworkUsageStates Struct

Definition

Defines the desired state of the connection profile for which usage data is returned by the method GetNetworkUsageAsync.

public value class NetworkUsageStates
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct NetworkUsageStates
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct NetworkUsageStates
var networkUsageStates = {
roaming : /* Your value */,
shared : /* Your value */
}
Public Structure NetworkUsageStates
Inheritance
NetworkUsageStates
Attributes

Windows requirements

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

Remarks

The Shared NetworkUsageState corresponds to when a network connection is made available to provide internet access for other devices. For an example of how NetworkUsageStates is used, see How to retrieve connection usage data for a specific period of time.

Fields

Roaming

Defines the desired roaming state of the network connection.

Shared

Defines the desired sharing state of the network connection.

Applies to