ConnectionProfile.GetProviderNetworkUsageAsync 方法

定義

傳回每個 MCC 和 MNC 組合所傳送的位元組和接收的位元組, (組合是由 ProviderId) 表示。

public:
 virtual IAsyncOperation<IVectorView<ProviderNetworkUsage ^> ^> ^ GetProviderNetworkUsageAsync(DateTime startTime, DateTime endTime, NetworkUsageStates states) = GetProviderNetworkUsageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<ProviderNetworkUsage>> GetProviderNetworkUsageAsync(DateTime const& startTime, DateTime const& endTime, NetworkUsageStates const& states);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<ProviderNetworkUsage>> GetProviderNetworkUsageAsync(System.DateTimeOffset startTime, System.DateTimeOffset endTime, NetworkUsageStates states);
function getProviderNetworkUsageAsync(startTime, endTime, states)
Public Function GetProviderNetworkUsageAsync (startTime As DateTimeOffset, endTime As DateTimeOffset, states As NetworkUsageStates) As IAsyncOperation(Of IReadOnlyList(Of ProviderNetworkUsage))

參數

startTime
DateTime DateTimeOffset

要擷取資料的開始時間。 在目前時間之前不能超過 60 天。

endTime
DateTime DateTimeOffset

要擷取資料的結束時間。

states
NetworkUsageStates

應該傳回使用量資料的連線設定檔狀態。

傳回

傳回單一物件,其中包含 ProviderId所接收的位元組傳送和位元組。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

適用於

另請參閱