語言

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 範圍的數值非常有用。

適用於