共用方式為


DataUsage.BytesSent 屬性

定義

注意

dataUsage可能會在Windows 8.1之後變更或無法使用版本。 請改用 NetworkUsage

取得值,指出連接在特定時段內傳送的位元組數目。

public:
 property unsigned long long BytesSent { unsigned long long get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
uint64_t BytesSent();
/// [get: Windows.Foundation.Metadata.Deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
uint64_t BytesSent();
public ulong BytesSent { [Windows.Foundation.Metadata.Deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public ulong BytesSent { [Windows.Foundation.Metadata.Deprecated("IDataUsage may be altered or unavailable for releases after Windows 8.1. Instead, use INetworkUsage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var uInt64 = dataUsage.bytesSent;
Public ReadOnly Property BytesSent As ULong

屬性值

UInt64

unsigned long long

uint64_t

已傳送的位元組數。

屬性

適用於

另請參閱