共用方式為


ConnectionProfile.GetLocalUsage 方法

定義

多載

GetLocalUsage(DateTime, DateTime)

注意

getLocalUsage 可能會在Windows 8.1之後變更或無法使用版本。 請改用 GetNetworkUsageAsync

取得特定時段內連線的估計資料使用量。

GetLocalUsage(DateTime, DateTime, RoamingStates)

注意

getLocalUsage 可能會在Windows 8.1之後變更或無法使用版本。 請改用 GetNetworkUsageAsync

取得特定時段和漫遊狀態之連線的估計資料使用量。

GetLocalUsage(DateTime, DateTime)

注意

getLocalUsage 可能會在Windows 8.1之後變更或無法使用版本。 請改用 GetNetworkUsageAsync

取得特定時段內連線的估計資料使用量。

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)

注意

getLocalUsage 可能會在Windows 8.1之後變更或無法使用版本。 請改用 GetNetworkUsageAsync

取得特定時段和漫遊狀態之連線的估計資料使用量。

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

要限定要求範圍的漫遊狀態。

傳回

要求的本機資料使用方式資訊。

屬性

備註

如需如何使用此方法的範例,請參閱 如何擷取特定時段的連接使用方式資料

另請參閱

適用於