NetworkUsage 类

定义

表示 ConnectionProfile 返回的网络使用情况统计信息。GetNetworkUsageAsync 方法。

public ref class NetworkUsage sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NetworkUsage final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NetworkUsage
Public NotInheritable Class NetworkUsage
继承
Object Platform::Object IInspectable NetworkUsage
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

属性

BytesReceived

指示特定时间段的连接收到的字节数。

BytesSent

指示连接在特定时间段内发送的字节数。

ConnectionDuration

指示连接的持续时间。

适用于