AttributedNetworkUsage 類別

定義

提供屬性值的存取權,其中包含屬性化網路連線目前使用方式的相關資訊。

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

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 引進)

備註

透過呼叫GetAttributedNetworkUsageAsync方法,即可從ConnectionProfile擷取 AttributedNetworkUsage 類別。

注意

當應用程式在模擬器上執行Microsoft Visual Studio 2013 Update 2而非實際裝置時,不支援資料使用量追蹤。 因此,在模擬器上執行時,Windows Phone 8.x 應用程式中的GetAttributedNetworkUsageAsync方法將會失敗。

屬性

AttributionId

取得應用程式的識別碼。

AttributionName

取得應用程式的名稱。

AttributionThumbnail

取得應用程式的縮圖。

BytesReceived

取得應用程式透過網路接收的位元組數目。

BytesSent

取得應用程式透過網路傳送的位元組數目。

適用於

另請參閱