Поділитися через


AsnWriter.WriteOctetString Method

Definition

Write an Octet String value with a specified tag.

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

Parameters

value
ReadOnlySpan<Byte>

The value to write.

tag
Nullable<Asn1Tag>

The tag to write, or null for the default tag (Universal 4).

Exceptions

tag.TagClass is Universal, but tag.TagValue is not correct for the method.

Applies to