CborWriter.WriteCborNegativeIntegerRepresentation(UInt64) 方法

定义

重要

此 API 不符合 CLS。

将所提供的值作为 CBOR 负整数表示形式(主要类型 1)写入。

public:
 void WriteCborNegativeIntegerRepresentation(System::UInt64 value);
[System.CLSCompliant(false)]
public void WriteCborNegativeIntegerRepresentation (ulong value);
[<System.CLSCompliant(false)>]
member this.WriteCborNegativeIntegerRepresentation : uint64 -> unit
Public Sub WriteCborNegativeIntegerRepresentation (value As ULong)

参数

value
UInt64

表示 -1 减去整数的无符号整数。

属性

例外

写入新值超过了父数据项的确定长度。

父数据项中不允许使用已编码值的主要类型。

在当前一致性模式下,写入的数据不被接受。

注解

此方法支持在 -18446744073709551616 和 -1 之间编码整数。 对于处理不适合类型的值很有用 Int64

适用于