Share via


ConnectionProfile.GetAttributedNetworkUsageAsync 메서드

정의

각 개별 애플리케이션에 대한 네트워크 사용량 데이터를 가져옵니다.

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

매개 변수

startTime
DateTime DateTimeOffset

사용 기간의 시작 시간입니다.

endTime
DateTime DateTimeOffset

사용 기간의 종료 시간입니다.

states
NetworkUsageStates

사용량 현황 데이터를 반환해야 하는 연결 프로필의 상태입니다.

반환

메서드가 완료되면 전송 및 수신된 값(바이트)과 해당 시간 간격 동안 앱이 연결된 총 시간을 나타내는 AttributedNetworkUsage 개체 목록을 반환합니다.

특성

Windows 요구 사항

앱 기능
networkDataPlanProvisioning

설명

참고

실제 디바이스 대신 Microsoft Visual Studio 2013 업데이트 2 아래의 에뮬레이터에서 앱을 실행하는 경우 데이터 사용량 추적이 지원되지 않습니다. 따라서 에뮬레이터에서 실행할 때 Windows Phone 8.x 앱의 GetAttributedNetworkUsageAsync 메서드가 실패합니다.

적용 대상