ProviderNetworkUsage 类

定义

表示 ConnectionProfile 返回的提供程序网络使用情况统计信息。GetProviderNetworkUsageAsync 方法。

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

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

属性

BytesReceived

获取一个值,该值指示连接在特定时间段内收到的字节数。

BytesSent

获取一个值,该值指示连接在特定时间段内发送的字节数。

ProviderId

获取 ProviderId (MCC 和 MNC) 的组合。

适用于

另请参阅