ConnectionProfile.GetLocalUsage(DateTime, DateTime, RoamingStates) | getLocalUsage(DateTime, DateTime, RoamingStates) method

Applies to Windows and Windows Phone

[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.

Syntax


Public Function GetLocalUsage(
  StartTime As DateTimeOffset,  
  EndTime As DateTimeOffset,  
  States As RoamingStates 
) As DataUsage

Parameters

StartTime

Type: Date [JavaScript] | System.DateTimeOffset [.NET] | Windows::Foundation::DateTime [C++]

The start date/time for the usage data request.

EndTime

Type: Date [JavaScript] | System.DateTimeOffset [.NET] | Windows::Foundation::DateTime [C++]

The end date/time for the usage data request.

States

Type: RoamingStates

The roaming state to scope the request to.

Return value

Type: DataUsage

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

ConnectionProfile
GetLocalUsage(DateTime, DateTime)

 

 

Show:
© 2014 Microsoft