Asn1Tag Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Asn1Tag(UniversalTagNumber, Boolean) |
Create an Asn1Tag for a tag from the UNIVERSAL class. |
Asn1Tag(TagClass, Int32, Boolean) |
Create an Asn1Tag for a specified value within a specified tag class. |
Asn1Tag(UniversalTagNumber, Boolean)
- Source:
- Asn1Tag.cs
- Source:
- Asn1Tag.cs
- Source:
- Asn1Tag.cs
Create an Asn1Tag for a tag from the UNIVERSAL class.
public Asn1Tag (System.Formats.Asn1.UniversalTagNumber universalTagNumber, bool isConstructed = false);
new System.Formats.Asn1.Asn1Tag : System.Formats.Asn1.UniversalTagNumber * bool -> System.Formats.Asn1.Asn1Tag
Public Sub New (universalTagNumber As UniversalTagNumber, Optional isConstructed As Boolean = false)
Parameters
- universalTagNumber
- UniversalTagNumber
One of the enumeration values that specifies the semantic type for this tag.
- isConstructed
- Boolean
true
for a constructed tag, false
for a primitive tag.
Exceptions
universalTagNumber
is not a known value.
Applies to
Asn1Tag(TagClass, Int32, Boolean)
- Source:
- Asn1Tag.cs
- Source:
- Asn1Tag.cs
- Source:
- Asn1Tag.cs
Create an Asn1Tag for a specified value within a specified tag class.
public Asn1Tag (System.Formats.Asn1.TagClass tagClass, int tagValue, bool isConstructed = false);
new System.Formats.Asn1.Asn1Tag : System.Formats.Asn1.TagClass * int * bool -> System.Formats.Asn1.Asn1Tag
Public Sub New (tagClass As TagClass, tagValue As Integer, Optional isConstructed As Boolean = false)
Parameters
- tagClass
- TagClass
The tag class for this tag.
- tagValue
- Int32
The numeric value for this tag.
- isConstructed
- Boolean
true
for a constructed tag, false
for a primitive tag.
Exceptions
tagClass
is not a known value.
-or-
tagValue
is negative.
Remarks
This constructor allows for the creation undefined UNIVERSAL class tags.