CborWriter.WriteInt64(Int64) 方法

定義

以帶正負號的整數編碼 (主要類型 0、1) 形式寫入提供的值Writes the provided value as a signed integer encoding (major types 0,1)

public:
 void WriteInt64(long value);
public void WriteInt64 (long value);
member this.WriteInt64 : int64 -> unit
Public Sub WriteInt64 (value As Long)

參數

value
Int64

要寫入的值The value to write

例外狀況

寫入新值,已超過父資料項目的明確長度。Writing a new value exceeds the definite length of the parent data item.

-或--or-

在父資料項目中,不允許已編碼值的主要類型。The major type of the encoded value is not permitted in the parent data item.

-或--or-

在目前的一致性模式中不接受寫入的資料。The written data is not accepted under the current conformance mode.

適用於