Utf8JsonWriter.BytesCommitted 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取目前为止当前实例提交到输出的字节总数。
public:
property long BytesCommitted { long get(); };
C#
public long BytesCommitted { get; }
member this.BytesCommitted : int64
Public ReadOnly Property BytesCommitted As Long
到目前为止, 提交到输出 Utf8JsonWriter 的总字节数。
对于 IBufferWriter<T>,此属性指示 IBufferWriter 已提升多少。
对于 Stream,此属性指示已写入流的数据量。
产品 | 版本 |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |