共用方式為


AsnWriter.WriteInteger 方法

定義

多載

WriteInteger(Int64, Nullable<Asn1Tag>)

寫入具有所指定標籤的整數值。

WriteInteger(BigInteger, Nullable<Asn1Tag>)

寫入具有所指定標籤的整數值。

WriteInteger(ReadOnlySpan<Byte>, Nullable<Asn1Tag>)

寫入具有所指定標籤的整數值。

WriteInteger(UInt64, Nullable<Asn1Tag>)

寫入具有所指定標籤的整數值。

WriteInteger(Int64, Nullable<Asn1Tag>)

來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs

寫入具有所指定標籤的整數值。

public void WriteInteger (long value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteInteger : int64 * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As Long, Optional tag As Nullable(Of Asn1Tag) = Nothing)

參數

value
Int64

要寫入的值。

tag
Nullable<Asn1Tag>

要寫入的標籤,或預設標籤的 null (Universal 2)。

例外狀況

tagTagClassUniversal,但 tagTagValue 對方法而言不正確。

適用於

WriteInteger(BigInteger, Nullable<Asn1Tag>)

來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs

寫入具有所指定標籤的整數值。

public void WriteInteger (System.Numerics.BigInteger value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteInteger : System.Numerics.BigInteger * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As BigInteger, Optional tag As Nullable(Of Asn1Tag) = Nothing)

參數

value
BigInteger

要寫入的值。

tag
Nullable<Asn1Tag>

要寫入的標籤,或預設標籤的 null (Universal 2)。

例外狀況

tagTagClassUniversal,但 tagTagValue 對方法而言不正確。

適用於

WriteInteger(ReadOnlySpan<Byte>, Nullable<Asn1Tag>)

來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs

寫入具有所指定標籤的整數值。

public void WriteInteger (ReadOnlySpan<byte> value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteInteger : ReadOnlySpan<byte> * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As ReadOnlySpan(Of Byte), Optional tag As Nullable(Of Asn1Tag) = Nothing)

參數

value
ReadOnlySpan<Byte>

要寫入的整數值,帶正負號且由大到小的位元組順序。

tag
Nullable<Asn1Tag>

要寫入的標籤,或預設標籤的 null (Universal 2)。

例外狀況

tagTagClassUniversal,但 tagTagValue 對方法而言不正確。

9 個最重要的位元已全都完成設定。 -或- 9 個最重要的位元全都未設定。

適用於

WriteInteger(UInt64, Nullable<Asn1Tag>)

來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs
來源:
AsnWriter.Integer.cs

重要

此 API 不符合 CLS 規範。

寫入具有所指定標籤的整數值。

[System.CLSCompliant(false)]
public void WriteInteger (ulong value, System.Formats.Asn1.Asn1Tag? tag = default);
[<System.CLSCompliant(false)>]
member this.WriteInteger : uint64 * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As ULong, Optional tag As Nullable(Of Asn1Tag) = Nothing)

參數

value
UInt64

要寫入的值。

tag
Nullable<Asn1Tag>

要寫入的標籤,或預設標籤的 null (Universal 2)。

屬性

例外狀況

tagTagClassUniversal,但 tagTagValue 對方法而言不正確。

適用於