ConnectionProfile.GetLocalUsage Method

Definition

Overloads

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)

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)

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:
 virtual DataUsage ^ GetLocalUsage(DateTime StartTime, DateTime EndTime) = GetLocalUsage;
/// [Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Overload("GetLocalUsage")]
DataUsage GetLocalUsage(DateTime const& StartTime, DateTime const& EndTime);
/// [Windows.Foundation.Metadata.Overload("GetLocalUsage")]
/// [Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DataUsage GetLocalUsage(DateTime const& StartTime, DateTime const& EndTime);
[Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Overload("GetLocalUsage")]
public DataUsage GetLocalUsage(System.DateTimeOffset StartTime, System.DateTimeOffset EndTime);
[Windows.Foundation.Metadata.Overload("GetLocalUsage")]
[Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DataUsage GetLocalUsage(System.DateTimeOffset StartTime, System.DateTimeOffset EndTime);
function getLocalUsage(StartTime, EndTime)
Public Function GetLocalUsage (StartTime As DateTimeOffset, EndTime As DateTimeOffset) As DataUsage

Parameters

StartTime
DateTime DateTimeOffset

The start date/time for the usage data request.

EndTime
DateTime DateTimeOffset

The end date/time for the usage data request.

Returns

The requested local data usage information.

Attributes

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

Applies to

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:
 virtual DataUsage ^ GetLocalUsage(DateTime StartTime, DateTime EndTime, RoamingStates States) = GetLocalUsage;
/// [Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Overload("GetLocalUsagePerRoamingStates")]
DataUsage GetLocalUsage(DateTime const& StartTime, DateTime const& EndTime, RoamingStates const& States);
/// [Windows.Foundation.Metadata.Overload("GetLocalUsagePerRoamingStates")]
/// [Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DataUsage GetLocalUsage(DateTime const& StartTime, DateTime const& EndTime, RoamingStates const& States);
[Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Overload("GetLocalUsagePerRoamingStates")]
public DataUsage GetLocalUsage(System.DateTimeOffset StartTime, System.DateTimeOffset EndTime, RoamingStates States);
[Windows.Foundation.Metadata.Overload("GetLocalUsagePerRoamingStates")]
[Windows.Foundation.Metadata.Deprecated("GetLocalUsage may be altered or unavailable for releases after Windows 8.1. Instead, use GetNetworkUsageAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DataUsage GetLocalUsage(System.DateTimeOffset StartTime, System.DateTimeOffset EndTime, RoamingStates States);
function getLocalUsage(StartTime, EndTime, States)
Public Function GetLocalUsage (StartTime As DateTimeOffset, EndTime As DateTimeOffset, States As RoamingStates) As DataUsage

Parameters

StartTime
DateTime DateTimeOffset

The start date/time for the usage data request.

EndTime
DateTime DateTimeOffset

The end date/time for the usage data request.

States
RoamingStates

The roaming state to scope the request to.

Returns

The requested local data usage information.

Attributes

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

Applies to