AsnWriter.PushSequence(Nullable<Asn1Tag>) Method

Definition

Begin writing a Sequence with a specified tag.

public System.Formats.Asn1.AsnWriter.Scope PushSequence (System.Formats.Asn1.Asn1Tag? tag = default);
member this.PushSequence : Nullable<System.Formats.Asn1.Asn1Tag> -> System.Formats.Asn1.AsnWriter.Scope
Public Function PushSequence (Optional tag As Nullable(Of Asn1Tag) = Nothing) As AsnWriter.Scope

Parameters

tag
Nullable<Asn1Tag>

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

Returns

A disposable value which will automatically call PopSequence(Nullable<Asn1Tag>).

Exceptions

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

Applies to