ConnectionProfile.GetProviderNetworkUsageAsync(DateTime, DateTime, NetworkUsageStates) ConnectionProfile.GetProviderNetworkUsageAsync(DateTime, DateTime, NetworkUsageStates) ConnectionProfile.GetProviderNetworkUsageAsync(DateTime, DateTime, NetworkUsageStates) ConnectionProfile.GetProviderNetworkUsageAsync(DateTime, DateTime, NetworkUsageStates) ConnectionProfile.GetProviderNetworkUsageAsync(DateTime, DateTime, NetworkUsageStates) Method

Definition

Returns the bytes sent and bytes received for each MCC and MNC combination (the combination is represented by a ProviderId ).

public : IAsyncOperation<IVectorView<ProviderNetworkUsage>> GetProviderNetworkUsageAsync(DateTime startTime, DateTime endTime, NetworkUsageStates states)
IAsyncOperation<IVectorView<ProviderNetworkUsage>> GetProviderNetworkUsageAsync(DateTime startTime, DateTime endTime, NetworkUsageStates states) const;
public IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>> GetProviderNetworkUsageAsync(DateTimeOffset startTime, DateTimeOffset endTime, NetworkUsageStates states)
Public Function GetProviderNetworkUsageAsync(startTime As DateTimeOffset, endTime As DateTimeOffset, states As NetworkUsageStates) As IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>>(Of IVectorView)
Windows.Networking.Connectivity.ConnectionProfile.getProviderNetworkUsageAsync(startTime, endTime, states).done( /* Your success and error handlers */ );

Parameters

startTime
DateTimeOffset DateTimeOffset DateTimeOffset

The start time over which to retrieve data. Can be no more than 60 days prior to the current time. If the specified granularity is PerMinute, the start time can be no more than 120 minutes prior to the current time.

endTime
DateTimeOffset DateTimeOffset DateTimeOffset

The end time over which to retrieve data.

states
NetworkUsageStates NetworkUsageStates NetworkUsageStates

The state of the connection profile for which usage data should be returned.

Returns

IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>> IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>> IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>>

Returns a single object containing the bytes send and bytes received for the ProviderId.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

See also