ConnectionProfile.GetConnectivityIntervalsAsync メソッド

定義

ConnectivityInterval オブジェクトの一覧を取得します。これは、ネットワーク接続が開始されたときのタイムスタンプと、その接続の期間中の期間を示します。

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

パラメーター

startTime
DateTime DateTimeOffset

データを取得する開始時刻。 現在の時刻の 60 日前までに指定できます。

endTime
DateTime DateTimeOffset

データを取得する終了時刻。

states
NetworkUsageStates

使用状況データを返す必要がある接続プロファイルの状態。

戻り値

メソッドが完了すると、 ConnectivityInterval オブジェクトの一覧が返されます。これは、現在または以前の接続の開始時刻と期間を示します。

属性

注釈

これらのメソッドの使用方法の例については、「特定の期間の接続使用状況データを取得する方法」を参照してください。

適用対象