ConnectionProfile.GetLocalUsage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetLocalUsage(DateTime, DateTime) |
注意 getLocalUsage 在Windows 8.1后可能会更改或不可用于发布。 请改用 GetNetworkUsageAsync 获取在特定时间段内连接的估计数据使用情况。 |
GetLocalUsage(DateTime, DateTime, RoamingStates) |
注意 getLocalUsage 在Windows 8.1后可能会更改或不可用于发布。 请改用 GetNetworkUsageAsync 获取特定时间段内连接和漫游状态的估计数据使用情况。 |
GetLocalUsage(DateTime, DateTime)
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
参数
- StartTime
- DateTime DateTimeOffset
使用情况数据请求的开始日期/时间。
- EndTime
- DateTime DateTimeOffset
使用情况数据请求的结束日期/时间。
返回
请求的本地数据使用情况信息。
- 属性
注解
有关如何使用此方法的示例,请参阅 如何检索特定时间段的连接使用情况数据。
另请参阅
适用于
GetLocalUsage(DateTime, DateTime, RoamingStates)
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
参数
- StartTime
- DateTime DateTimeOffset
使用情况数据请求的开始日期/时间。
- EndTime
- DateTime DateTimeOffset
使用情况数据请求的结束日期/时间。
- States
- RoamingStates
将请求范围限定为的漫游状态。
返回
请求的本地数据使用情况信息。
- 属性
注解
有关如何使用此方法的示例,请参阅 如何检索特定时间段的连接使用情况数据。