语言

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 类型的值。

适用于