Asn1Tag Struct
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.
This type represents an ASN.1 tag, as described in ITU-T Recommendation X.680.
public value class Asn1Tag : IEquatable<System::Formats::Asn1::Asn1Tag>
public readonly struct Asn1Tag : IEquatable<System.Formats.Asn1.Asn1Tag>
type Asn1Tag = struct
Public Structure Asn1Tag
Implements IEquatable(Of Asn1Tag)
- Inheritance
- Implements
Constructors
Asn1Tag(TagClass, Int32, Boolean) |
Create an Asn1Tag for a specified value within a specified tag class. |
Asn1Tag(UniversalTagNumber, Boolean) |
Create an Asn1Tag for a tag from the UNIVERSAL class. |
Fields
Boolean |
Represents the universal class tag for a Boolean value. |
ConstructedBitString |
Represents the universal class tag for a Bit String value under a constructed encoding. |
ConstructedOctetString |
Represents the universal class tag for a Octet String value under a constructed encoding. |
Enumerated |
Represents the universal class tag for an Enumerated value. |
GeneralizedTime |
Represents the universal class tag for a GeneralizedTime value. |
Integer |
Represents the universal class tag for an Integer value. |
Null |
Represents the universal class tag for a |
ObjectIdentifier |
Represents the universal class tag for an Object Identifier value. |
PrimitiveBitString |
Represents the universal class tag for a Bit String value under a primitive encoding. |
PrimitiveOctetString |
Represents the universal class tag for an Octet String value under a primitive encoding. |
Sequence |
Represents the universal class tag for a Sequence value (always a constructed encoding). |
SetOf |
Represents the universal class tag for a SetOf value (always a constructed encoding). |
UtcTime |
Represents the universal class tag for a UtcTime value. |
Properties
IsConstructed |
Indicates if the tag represents a constructed encoding ( |
TagClass |
The tag class to which this tag belongs. |
TagValue |
The numeric value for this tag. |
Methods
AsConstructed() |
Produces a tag with the same TagClass and TagValue values, but whose IsConstructed is |
AsPrimitive() |
Produces a tag with the same TagClass and TagValue values, but whose IsConstructed is |
CalculateEncodedSize() |
Reports the number of bytes required for the BER-encoding of this tag. |
Decode(ReadOnlySpan<Byte>, Int32) |
Reads a BER-encoded tag which starts at |
Encode(Span<Byte>) |
Writes the BER-encoded form of this tag to |
Equals(Asn1Tag) |
Tests if |
Equals(Object) |
Tests if |
GetHashCode() |
Returns the hash code for this instance. |
HasSameClassAndValue(Asn1Tag) |
Tests if |
ToString() |
Provides a text representation of this tag suitable for debugging. |
TryDecode(ReadOnlySpan<Byte>, Asn1Tag, Int32) |
Attempts to read a BER-encoded tag which starts at |
TryEncode(Span<Byte>, Int32) |
Attempts to write the BER-encoded form of this tag to |
Operators
Equality(Asn1Tag, Asn1Tag) |
Tests if two Asn1Tag values have the same BER encoding. |
Inequality(Asn1Tag, Asn1Tag) |
Tests if two Asn1Tag values have a different BER encoding. |