Share via


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 개체 목록을 반환합니다.

특성

설명

이러한 메서드를 사용하는 방법에 대한 예제는 특정 기간 동안 연결 사용량 현황 데이터를 검색하는 방법을 참조하세요.

적용 대상