NetworkUsageStates NetworkUsageStates NetworkUsageStates NetworkUsageStates NetworkUsageStates Struct


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

public : struct NetworkUsageStates
struct winrt::Windows::Networking::Connectivity::NetworkUsageStates
public struct NetworkUsageStates
Public Structure NetworkUsageStates
var networkUsageStates = {

   roaming: /* Your value */,

   shared: /* Your value */


Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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.


Roaming Roaming Roaming Roaming Roaming

Defines the desired roaming state of the network connection.

Shared Shared Shared Shared Shared

Defines the desired sharing state of the network connection.