Share via


AsnWriter.WriteBoolean(Boolean, Nullable<Asn1Tag>) Method

Definition

Write a Boolean value with a specified tag.

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

Parameters

value
Boolean

The value to write.

tag
Nullable<Asn1Tag>

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

Exceptions

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

Applies to