Share via


AsnWriter.PushSetOf(Nullable<Asn1Tag>) Method

Definition

Begin writing a Set-Of with a specified tag.

public System.Formats.Asn1.AsnWriter.Scope PushSetOf (System.Formats.Asn1.Asn1Tag? tag = default);
member this.PushSetOf : Nullable<System.Formats.Asn1.Asn1Tag> -> System.Formats.Asn1.AsnWriter.Scope
Public Function PushSetOf (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 17).

Returns

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

Exceptions

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

Remarks

In CER and DER modes, the writer will sort the Set-Of elements when the tag is closed.

Applies to

See also