共用方式為


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

指出連線的持續時間。

適用於