ConnectionProfile.GetLocalUsage ConnectionProfile.GetLocalUsage ConnectionProfile.GetLocalUsage ConnectionProfile.GetLocalUsage ConnectionProfile.GetLocalUsage Method

Definition

Overloads

GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime)

Note

GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync

Gets the estimated data usage for a connection during over a specific period of time.

GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates)

Note

GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync

Gets the estimated data usage for a connection over a specific period of time and roaming state.

GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime) GetLocalUsage(DateTime, DateTime)

Note

GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync

Gets the estimated data usage for a connection during over a specific period of time.

public : DataUsage GetLocalUsage(DateTime StartTime, DateTime EndTime)
DataUsage GetLocalUsage(DateTime StartTime, DateTime EndTime) const;
public DataUsage GetLocalUsage(DateTimeOffset StartTime, DateTimeOffset EndTime)
Public Function GetLocalUsage(StartTime As DateTimeOffset, EndTime As DateTimeOffset) As DataUsage
var dataUsage = connectionProfile.getLocalUsage(startTime, endTime);

Parameters

StartTime
DateTimeOffset DateTimeOffset DateTimeOffset

The start date/time for the usage data request.

EndTime
DateTimeOffset DateTimeOffset DateTimeOffset

The end date/time for the usage data request.

Returns

The requested local data usage information.

Remarks

For an example of how this method is used, see How to retrieve connection usage data for a specific period of time.

See also

GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates) GetLocalUsage(DateTime, DateTime, RoamingStates)

Note

GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync

Gets the estimated data usage for a connection over a specific period of time and roaming state.

public : DataUsage GetLocalUsage(DateTime StartTime, DateTime EndTime, RoamingStates States)
DataUsage GetLocalUsage(DateTime StartTime, DateTime EndTime, RoamingStates States) const;
public DataUsage GetLocalUsage(DateTimeOffset StartTime, DateTimeOffset EndTime, RoamingStates States)
Public Function GetLocalUsage(StartTime As DateTimeOffset, EndTime As DateTimeOffset, States As RoamingStates) As DataUsage
var dataUsage = connectionProfile.getLocalUsage(startTime, endTime, states);

Parameters

StartTime
DateTimeOffset DateTimeOffset DateTimeOffset

The start date/time for the usage data request.

EndTime
DateTimeOffset DateTimeOffset DateTimeOffset

The end date/time for the usage data request.

States
RoamingStates RoamingStates RoamingStates

The roaming state to scope the request to.

Returns

The requested local data usage information.

Remarks

For an example of how this method is used, see How to retrieve connection usage data for a specific period of time.

See also