1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Formats.Asn1</name>
7 <member name="T:System.Formats.Asn1.Asn1Tag">
8 <summary>This type represents an ASN.1 tag, as described in ITU-T Recommendation X.680.</summary>
10 <member name="F:System.Formats.Asn1.Asn1Tag.Boolean">
11 <summary>Represents the universal class tag for a Boolean value.</summary>
13 <member name="F:System.Formats.Asn1.Asn1Tag.ConstructedBitString">
14 <summary>Represents the universal class tag for a Bit String value under a constructed encoding.</summary>
16 <member name="F:System.Formats.Asn1.Asn1Tag.ConstructedOctetString">
17 <summary>Represents the universal class tag for a Octet String value under a constructed encoding.</summary>
19 <member name="F:System.Formats.Asn1.Asn1Tag.Enumerated">
20 <summary>Represents the universal class tag for an Enumerated value.</summary>
22 <member name="F:System.Formats.Asn1.Asn1Tag.GeneralizedTime">
23 <summary>Represents the universal class tag for a GeneralizedTime value.</summary>
25 <member name="F:System.Formats.Asn1.Asn1Tag.Integer">
26 <summary>Represents the universal class tag for an Integer value.</summary>
28 <member name="F:System.Formats.Asn1.Asn1Tag.Null">
29 <summary>Represents the universal class tag for a <see langword="null" /> value.</summary>
31 <member name="F:System.Formats.Asn1.Asn1Tag.ObjectIdentifier">
32 <summary>Represents the universal class tag for an Object Identifier value.</summary>
34 <member name="F:System.Formats.Asn1.Asn1Tag.PrimitiveBitString">
35 <summary>Represents the universal class tag for a Bit String value under a primitive encoding.</summary>
37 <member name="F:System.Formats.Asn1.Asn1Tag.PrimitiveOctetString">
38 <summary>Represents the universal class tag for an Octet String value under a primitive encoding.</summary>
40 <member name="F:System.Formats.Asn1.Asn1Tag.Sequence">
41 <summary>Represents the universal class tag for a Sequence value (always a constructed encoding).</summary>
43 <member name="F:System.Formats.Asn1.Asn1Tag.SetOf">
44 <summary>Represents the universal class tag for a SetOf value (always a constructed encoding).</summary>
46 <member name="F:System.Formats.Asn1.Asn1Tag.UtcTime">
47 <summary>Represents the universal class tag for a UtcTime value.</summary>
49 <member name="M:System.Formats.Asn1.Asn1Tag.#ctor(System.Formats.Asn1.TagClass,System.Int32,System.Boolean)">
50 <summary>Create an <see cref="T:System.Formats.Asn1.Asn1Tag" /> for a specified value within a specified tag class.</summary>
51 <param name="tagClass">The tag class for this tag.</param>
52 <param name="tagValue">The numeric value for this tag.</param>
53 <param name="isConstructed">
54 <see langword="true" /> for a constructed tag, <see langword="false" /> for a primitive tag.</param>
55 <exception cref="T:System.ArgumentOutOfRangeException">
56 <paramref name="tagClass" /> is not a known value.
58 <paramref name="tagValue" /> is negative.</exception>
60 <member name="M:System.Formats.Asn1.Asn1Tag.#ctor(System.Formats.Asn1.UniversalTagNumber,System.Boolean)">
61 <summary>Create an <see cref="T:System.Formats.Asn1.Asn1Tag" /> for a tag from the UNIVERSAL class.</summary>
62 <param name="universalTagNumber">One of the enumeration values that specifies the semantic type for this tag.</param>
63 <param name="isConstructed">
64 <see langword="true" /> for a constructed tag, <see langword="false" /> for a primitive tag.</param>
65 <exception cref="T:System.ArgumentOutOfRangeException">
66 <paramref name="universalTagNumber" /> is not a known value.</exception>
68 <member name="M:System.Formats.Asn1.Asn1Tag.AsConstructed">
69 <summary>Produces a tag with the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> values, but whose <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" /> is <see langword="true" />.</summary>
70 <returns>A tag with the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> values, but whose <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" /> is <see langword="true" />.</returns>
72 <member name="M:System.Formats.Asn1.Asn1Tag.AsPrimitive">
73 <summary>Produces a tag with the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> values, but whose <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" /> is <see langword="false" />.</summary>
74 <returns>A tag with the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> values, but whose <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" /> is <see langword="false" />.</returns>
76 <member name="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize">
77 <summary>Reports the number of bytes required for the BER-encoding of this tag.</summary>
78 <returns>The number of bytes required for the BER-encoding of this tag.</returns>
80 <member name="M:System.Formats.Asn1.Asn1Tag.Decode(System.ReadOnlySpan{System.Byte},System.Int32@)">
81 <summary>Reads a BER-encoded tag which starts at <paramref name="source" />.</summary>
82 <param name="source">The read only byte sequence whose beginning is a BER-encoded tag.</param>
83 <param name="bytesConsumed">When this method returns, contains the number of bytes that contributed to the encoded tag. This parameter is treated as uninitialized.</param>
84 <exception cref="T:System.Formats.Asn1.AsnContentException">The provided data does not decode to a tag.</exception>
85 <returns>The decoded tag.</returns>
87 <member name="M:System.Formats.Asn1.Asn1Tag.Encode(System.Span{System.Byte})">
88 <summary>Writes the BER-encoded form of this tag to <paramref name="destination" />.</summary>
89 <param name="destination">The start of where the encoded tag should be written.</param>
90 <exception cref="T:System.ArgumentException">
91 <paramref name="destination" />.<see cref="P:System.Span`1.Length" /> < <see cref="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize" />.</exception>
92 <returns>The number of bytes written to <paramref name="destination" />.</returns>
94 <member name="M:System.Formats.Asn1.Asn1Tag.Equals(System.Formats.Asn1.Asn1Tag)">
95 <summary>Tests if <paramref name="other" /> has the same encoding as this tag.</summary>
96 <param name="other">Tag to test for equality.</param>
98 <see langword="true" /> if <paramref name="other" /> has the same values for <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" />, <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" />, and <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" />; <see langword="false" /> otherwise.</returns>
100 <member name="M:System.Formats.Asn1.Asn1Tag.Equals(System.Object)">
101 <summary>Tests if <paramref name="obj" /> is an <see cref="T:System.Formats.Asn1.Asn1Tag" /> with the same encoding as this tag.</summary>
102 <param name="obj">Object to test for value equality.</param>
104 <see langword="false" /> if <paramref name="obj" /> is not an <see cref="T:System.Formats.Asn1.Asn1Tag" />, <see cref="M:System.Formats.Asn1.Asn1Tag.Equals(System.Formats.Asn1.Asn1Tag)" /> otherwise.</returns>
106 <member name="M:System.Formats.Asn1.Asn1Tag.GetHashCode">
107 <summary>Returns the hash code for this instance.</summary>
108 <returns>A 32-bit signed integer hash code.</returns>
110 <member name="M:System.Formats.Asn1.Asn1Tag.HasSameClassAndValue(System.Formats.Asn1.Asn1Tag)">
111 <summary>Tests if <paramref name="other" /> has the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> values as this tag, and does not compare <see cref="P:System.Formats.Asn1.Asn1Tag.IsConstructed" />.</summary>
112 <param name="other">Tag to test for concept equality.</param>
114 <see langword="true" /> if <paramref name="other" /> has the same <see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> and <see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> as this tag, <see langword="false" /> otherwise.</returns>
116 <member name="M:System.Formats.Asn1.Asn1Tag.op_Equality(System.Formats.Asn1.Asn1Tag,System.Formats.Asn1.Asn1Tag)">
117 <summary>Tests if two <see cref="T:System.Formats.Asn1.Asn1Tag" /> values have the same BER encoding.</summary>
118 <param name="left">The first value to compare.</param>
119 <param name="right">The second value to compare.</param>
121 <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> have the same BER encoding, <see langword="false" /> otherwise.</returns>
123 <member name="M:System.Formats.Asn1.Asn1Tag.op_Inequality(System.Formats.Asn1.Asn1Tag,System.Formats.Asn1.Asn1Tag)">
124 <summary>Tests if two <see cref="T:System.Formats.Asn1.Asn1Tag" /> values have a different BER encoding.</summary>
125 <param name="left">The first value to compare.</param>
126 <param name="right">The second value to compare.</param>
128 <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> have a different BER encoding, <see langword="false" /> otherwise.</returns>
130 <member name="M:System.Formats.Asn1.Asn1Tag.ToString">
131 <summary>Provides a text representation of this tag suitable for debugging.</summary>
132 <returns>A text representation of this tag suitable for debugging.</returns>
134 <member name="M:System.Formats.Asn1.Asn1Tag.TryDecode(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.Asn1Tag@,System.Int32@)">
135 <summary>Attempts to read a BER-encoded tag which starts at <paramref name="source" />.</summary>
136 <param name="source">The read only byte sequence whose beginning is a BER-encoded tag.</param>
137 <param name="tag">The decoded tag.</param>
138 <param name="bytesConsumed">When this method returns, contains the number of bytes that contributed to the encoded tag, 0 on failure. This parameter is treated as uninitialized.</param>
140 <see langword="true" /> if a tag was correctly decoded; otherwise, <see langword="false" />.</returns>
142 <member name="M:System.Formats.Asn1.Asn1Tag.TryEncode(System.Span{System.Byte},System.Int32@)">
143 <summary>Attempts to write the BER-encoded form of this tag to <paramref name="destination" />.</summary>
144 <param name="destination">The start of where the encoded tag should be written.</param>
145 <param name="bytesWritten">Receives the value from <see cref="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize" /> on success, 0 on failure.</param>
147 <see langword="false" /> if <paramref name="destination" />.<see cref="P:System.Span`1.Length" /> < <see cref="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize" />(), <see langword="true" /> otherwise.</returns>
149 <member name="P:System.Formats.Asn1.Asn1Tag.IsConstructed">
150 <summary>Indicates if the tag represents a constructed encoding (<see langword="true" />), or a primitive encoding (<see langword="false" />).</summary>
152 <member name="P:System.Formats.Asn1.Asn1Tag.TagClass">
153 <summary>The tag class to which this tag belongs.</summary>
155 <member name="P:System.Formats.Asn1.Asn1Tag.TagValue">
156 <summary>The numeric value for this tag.</summary>
158 <member name="T:System.Formats.Asn1.AsnContentException">
159 <summary>The exception that is thrown when an encoded ASN.1 value cannot be successfully decoded.</summary>
161 <member name="M:System.Formats.Asn1.AsnContentException.#ctor">
162 <summary>Initializes a new instance of the <see cref="T:System.Formats.Asn1.AsnContentException" /> class, using the default message.</summary>
164 <member name="M:System.Formats.Asn1.AsnContentException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
165 <summary>Initializes a new instance of the <see cref="T:System.Formats.Asn1.AsnContentException" /> class with serialized data.</summary>
166 <param name="info">The object that holds the serialized object data.</param>
167 <param name="context">The contextual information about the source or destination.</param>
169 <member name="M:System.Formats.Asn1.AsnContentException.#ctor(System.String)">
170 <summary>Initializes a new instance of the <see cref="T:System.Formats.Asn1.AsnContentException" /> class, using the provided message.</summary>
171 <param name="message">The error message that explains the reason for the exception.</param>
173 <member name="M:System.Formats.Asn1.AsnContentException.#ctor(System.String,System.Exception)">
174 <summary>Initializes a new instance of the <see cref="T:System.Formats.Asn1.AsnContentException" /> class, using the provided message and exception that is the cause of this exception.</summary>
175 <param name="message">The error message that explains the reason for the exception.</param>
176 <param name="inner">The exception that is the cause of the current exception.</param>
178 <member name="T:System.Formats.Asn1.AsnDecoder">
179 <summary>Provides stateless methods for decoding BER-encoded, CER-encoded, and DER-encoded ASN.1 data.</summary>
181 <member name="M:System.Formats.Asn1.AsnDecoder.ReadBitString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
182 <summary>Reads a Bit String value from <paramref name="source" /> with a specified tag under the specified encoding rules, returning the contents in a new array.</summary>
183 <param name="source">The buffer containing encoded data.</param>
184 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
185 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.
186 This parameter is treated as uninitialized.</param>
187 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
188 This parameter is treated as uninitialized.</param>
189 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
190 <exception cref="T:System.ArgumentOutOfRangeException">
191 <paramref name="ruleSet" /> is not defined.</exception>
192 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
196 The length encoding is not valid under the current encoding rules.
200 The contents are not valid under the current encoding rules.</exception>
201 <exception cref="T:System.ArgumentException">
202 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
203 <returns>An array containing the contents of the Bit String value.</returns>
205 <member name="M:System.Formats.Asn1.AsnDecoder.ReadBoolean(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
206 <summary>Reads a Boolean value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
207 <param name="source">The buffer containing encoded data.</param>
208 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
209 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
210 This parameter is treated as uninitialized.</param>
211 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
212 <exception cref="T:System.ArgumentOutOfRangeException">
213 <paramref name="ruleSet" /> is not defined.</exception>
214 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
218 The length encoding is not valid under the current encoding rules.
222 The contents are not valid under the current encoding rules.</exception>
223 <exception cref="T:System.ArgumentException">
224 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
225 <returns>The decoded value.</returns>
227 <member name="M:System.Formats.Asn1.AsnDecoder.ReadCharacterString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.UniversalTagNumber,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
228 <summary>Reads the next value as character string with the specified tag and encoding type, returning the decoded string.</summary>
229 <param name="source">The buffer containing encoded data.</param>
230 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
231 <param name="encodingType">One of the enumeration values which represents the value type to process.</param>
232 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
233 This parameter is treated as uninitialized.</param>
234 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
235 <exception cref="T:System.ArgumentOutOfRangeException">
236 <paramref name="ruleSet" /> is not defined.
240 <paramref name="encodingType" /> is not a known character string type.</exception>
241 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
245 The length encoding is not valid under the current encoding rules.
249 The contents are not valid under the current encoding rules.
253 The string did not successfully decode.</exception>
254 <exception cref="T:System.ArgumentException">
255 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not the same as <paramref name="encodingType" />.</exception>
256 <returns>The decoded value.</returns>
258 <member name="M:System.Formats.Asn1.AsnDecoder.ReadEncodedValue(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Int32@)">
259 <summary>Locates the contents range for the encoded value at the beginning of the <paramref name="source" /> buffer using the specified encoding rules.</summary>
260 <param name="source">The buffer containing encoded data.</param>
261 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
262 <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
263 This parameter is treated as uninitialized.</param>
264 <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
265 This parameter is treated as uninitialized.</param>
266 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
267 This parameter is treated as uninitialized.</param>
268 <exception cref="T:System.ArgumentOutOfRangeException">
269 <paramref name="ruleSet" /> is not defined.</exception>
270 <exception cref="T:System.Formats.Asn1.AsnContentException">
271 <paramref name="source" /> does not represent a value encoded under the specified encoding rules.</exception>
272 <returns>The tag identifying the content.</returns>
274 <member name="M:System.Formats.Asn1.AsnDecoder.ReadEnumeratedBytes(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
275 <summary>Reads an Enumerated value from <paramref name="source" /> with a specified tag under the specified encoding rules, returning the contents as a slice of the buffer.</summary>
276 <param name="source">The buffer containing encoded data.</param>
277 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
278 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
279 This parameter is treated as uninitialized.</param>
280 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
281 <exception cref="T:System.ArgumentOutOfRangeException">
282 <paramref name="ruleSet" /> is not defined.</exception>
283 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
287 The length encoding is not valid under the current encoding rules.
291 The contents are not valid under the current encoding rules.</exception>
292 <exception cref="T:System.ArgumentException">
293 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
294 <returns>The slice of the buffer containing the bytes of the Enumerated value, in signed big-endian form.</returns>
296 <member name="M:System.Formats.Asn1.AsnDecoder.ReadEnumeratedValue(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Type,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
297 <summary>Reads an Enumerated from <paramref name="source" /> with a specified tag under the specified encoding rules, converting it to the non-[<see cref="T:System.FlagsAttribute" />] enum specified by <paramref name="enumType" />.</summary>
298 <param name="source">The buffer containing encoded data.</param>
299 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
300 <param name="enumType">Type object representing the destination type.</param>
301 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
302 This parameter is treated as uninitialized.</param>
303 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
304 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
308 The length encoding is not valid under the current encoding rules.
312 The contents are not valid under the current encoding rules.
316 The encoded value is too big to fit in a <paramref name="enumType" /> value.</exception>
317 <exception cref="T:System.ArgumentException">
318 <paramref name="enumType" /> is not an enum type.
322 <paramref name="enumType" /> was declared with <see cref="T:System.FlagsAttribute" />.
326 <paramref name="enumType" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="enumType" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
327 <exception cref="T:System.ArgumentNullException">
328 <paramref name="enumType" /> is <see langword="null" />.</exception>
329 <returns>The Enumerated value converted to a <paramref name="enumType" />.</returns>
331 <member name="M:System.Formats.Asn1.AsnDecoder.ReadEnumeratedValue``1(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
332 <summary>Reads an Enumerated from <paramref name="source" /> with a specified tag under the specified encoding rules, converting it to the non-[<see cref="T:System.FlagsAttribute" />] enum specified by <typeparamref name="TEnum" />.</summary>
333 <param name="source">The buffer containing encoded data.</param>
334 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
335 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
336 This parameter is treated as uninitialized.</param>
337 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
338 <typeparam name="TEnum">Destination enum type.</typeparam>
339 <exception cref="T:System.ArgumentOutOfRangeException">
340 <paramref name="ruleSet" /> is not defined.</exception>
341 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
345 The length encoding is not valid under the current encoding rules.
349 The contents are not valid under the current encoding rules.
353 The encoded value is too big to fit in a <paramref name="enumType" /> value.</exception>
354 <exception cref="T:System.ArgumentException">
355 <typeparamref name="TEnum" /> is not an enum type.
359 <typeparamref name="TEnum" /> was declared with <see cref="T:System.FlagsAttribute" />.
363 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
364 <returns>The Enumerated value converted to a <typeparamref name="TEnum" />.</returns>
366 <member name="M:System.Formats.Asn1.AsnDecoder.ReadGeneralizedTime(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
367 <summary>Reads a GeneralizedTime value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
368 <param name="source">The buffer containing encoded data.</param>
369 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
370 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
371 This parameter is treated as uninitialized.</param>
372 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
373 <exception cref="T:System.ArgumentOutOfRangeException">
374 <paramref name="ruleSet" /> is not defined.</exception>
375 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
379 The length encoding is not valid under the current encoding rules.
383 The contents are not valid under the current encoding rules.</exception>
384 <exception cref="T:System.ArgumentException">
385 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
386 <returns>The decoded value.</returns>
388 <member name="M:System.Formats.Asn1.AsnDecoder.ReadInteger(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
389 <summary>Reads an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
390 <param name="source">The buffer containing encoded data.</param>
391 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
392 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
393 This parameter is treated as uninitialized.</param>
394 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
395 <exception cref="T:System.ArgumentOutOfRangeException">
396 <paramref name="ruleSet" /> is not defined.</exception>
397 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
401 The length encoding is not valid under the current encoding rules.
405 The contents are not valid under the current encoding rules.</exception>
406 <exception cref="T:System.ArgumentException">
407 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
408 <returns>The decoded numeric value.</returns>
410 <member name="M:System.Formats.Asn1.AsnDecoder.ReadIntegerBytes(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
411 <summary>Reads an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules, returning the contents as a slice of the buffer.</summary>
412 <param name="source">The buffer containing encoded data.</param>
413 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
414 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
415 This parameter is treated as uninitialized.</param>
416 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
417 <exception cref="T:System.ArgumentOutOfRangeException">
418 <paramref name="ruleSet" /> is not defined.</exception>
419 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
423 The length encoding is not valid under the current encoding rules.
427 The contents are not valid under the current encoding rules.</exception>
428 <exception cref="T:System.ArgumentException">
429 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
430 <returns>The slice of the buffer containing the bytes of the Integer value, in signed big-endian form.</returns>
432 <member name="M:System.Formats.Asn1.AsnDecoder.ReadNamedBitList(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
433 <summary>Reads a NamedBitList from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
434 <param name="source">The buffer containing encoded data.</param>
435 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
436 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
437 This parameter is treated as uninitialized.</param>
438 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
439 <exception cref="T:System.ArgumentOutOfRangeException">
440 <paramref name="ruleSet" /> is not defined.</exception>
441 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
445 The length encoding is not valid under the current encoding rules.
449 The contents are not valid under the current encoding rules.</exception>
450 <exception cref="T:System.ArgumentException">
451 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
452 <returns>The bits from the encoded value.</returns>
454 <member name="M:System.Formats.Asn1.AsnDecoder.ReadNamedBitListValue(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Type,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
455 <summary>Reads a NamedBitList from <paramref name="source" /> with a specified tag under the specified encoding rules, converting it to the [<see cref="T:System.FlagsAttribute" />] enum specified by <paramref name="flagsEnumType" />.</summary>
456 <param name="source">The buffer containing encoded data.</param>
457 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
458 <param name="flagsEnumType">Type object representing the destination type.</param>
459 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
460 This parameter is treated as uninitialized.</param>
461 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
462 <exception cref="T:System.ArgumentOutOfRangeException">
463 <paramref name="ruleSet" /> is not defined.</exception>
464 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
468 The length encoding is not valid under the current encoding rules.
472 The contents are not valid under the current encoding rules.
476 The encoded value is too big to fit in a <paramref name="flagsEnumType" /> value.</exception>
477 <exception cref="T:System.ArgumentException">
478 <paramref name="flagsEnumType" /> is not an enum type.
482 <paramref name="flagsEnumType" /> was not declared with <see cref="T:System.FlagsAttribute" />
486 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
487 <exception cref="T:System.ArgumentNullException">
488 <paramref name="flagsEnumType" /> is <see langword="null" /></exception>
489 <returns>The NamedBitList value converted to a <paramref name="flagsEnumType" />.</returns>
491 <member name="M:System.Formats.Asn1.AsnDecoder.ReadNamedBitListValue``1(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
492 <summary>Reads a NamedBitList from <paramref name="source" /> with a specified tag under the specified encoding rules, converting it to the [<see cref="T:System.FlagsAttribute" />] enum specified by <typeparamref name="TFlagsEnum" />.</summary>
493 <param name="source">The buffer containing encoded data.</param>
494 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
495 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
496 This parameter is treated as uninitialized.</param>
497 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
498 <typeparam name="TFlagsEnum">Destination enum type.</typeparam>
499 <exception cref="T:System.ArgumentOutOfRangeException">
500 <paramref name="ruleSet" /> is not defined.</exception>
501 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
505 The length encoding is not valid under the current encoding rules.
509 The contents are not valid under the current encoding rules.
513 The encoded value is too big to fit in a <paramref name="TFlagsEnum" /> value.</exception>
514 <exception cref="T:System.ArgumentException">
515 <typeparamref name="TFlagsEnum" /> is not an enum type.
519 <typeparamref name="TFlagsEnum" /> was not declared with <see cref="T:System.FlagsAttribute" />
523 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
524 <returns>The NamedBitList value converted to a <typeparamref name="TFlagsEnum" />.</returns>
526 <member name="M:System.Formats.Asn1.AsnDecoder.ReadNull(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
527 <summary>Reads a <see langword="null" /> value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
528 <param name="source">The buffer containing encoded data.</param>
529 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
530 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
531 This parameter is treated as uninitialized.</param>
532 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 5).</param>
533 <exception cref="T:System.ArgumentOutOfRangeException">
534 <paramref name="ruleSet" /> is not defined.</exception>
535 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
539 The length encoding is not valid under the current encoding rules.
543 The contents are not valid under the current encoding rules.</exception>
544 <exception cref="T:System.ArgumentException">
545 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
547 <member name="M:System.Formats.Asn1.AsnDecoder.ReadObjectIdentifier(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
548 <summary>Reads an Object Identifier value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
549 <param name="source">The buffer containing encoded data.</param>
550 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
551 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
552 This parameter is treated as uninitialized.</param>
553 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 6).</param>
554 <exception cref="T:System.ArgumentOutOfRangeException">
555 <paramref name="ruleSet" /> is not defined.</exception>
556 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
560 The length encoding is not valid under the current encoding rules.
564 The contents are not valid under the current encoding rules.</exception>
565 <exception cref="T:System.ArgumentException">
566 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
567 <returns>The decoded object identifier, in dotted-decimal notation.</returns>
569 <member name="M:System.Formats.Asn1.AsnDecoder.ReadOctetString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
570 <summary>Reads an Octet String value from <paramref name="source" /> with a specified tag under the specified encoding rules, returning the contents in a new array.</summary>
571 <param name="source">The buffer containing encoded data.</param>
572 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
573 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
574 This parameter is treated as uninitialized.</param>
575 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
576 <exception cref="T:System.ArgumentOutOfRangeException">
577 <paramref name="ruleSet" /> is not defined.</exception>
578 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
582 The length encoding is not valid under the current encoding rules.
586 The contents are not valid under the current encoding rules.</exception>
587 <exception cref="T:System.ArgumentException">
588 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
589 <returns>An array containing the contents of the Octet String value.</returns>
591 <member name="M:System.Formats.Asn1.AsnDecoder.ReadSequence(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
592 <summary>Reads a Sequence or Sequence-Of value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
593 <param name="source">The buffer containing encoded data.</param>
594 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
595 <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
596 This parameter is treated as uninitialized.</param>
597 <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
598 This parameter is treated as uninitialized.</param>
599 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
600 This parameter is treated as uninitialized.</param>
601 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 16).</param>
602 <exception cref="T:System.ArgumentOutOfRangeException">
603 <paramref name="ruleSet" /> is not defined.</exception>
604 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
608 The length encoding is not valid under the current encoding rules.
612 The contents are not valid under the current encoding rules.</exception>
613 <exception cref="T:System.ArgumentException">
614 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
616 <member name="M:System.Formats.Asn1.AsnDecoder.ReadSetOf(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Int32@,System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
617 <summary>Reads a Set-Of value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
618 <param name="source">The buffer containing encoded data.</param>
619 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
620 <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
621 This parameter is treated as uninitialized.</param>
622 <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
623 This parameter is treated as uninitialized.</param>
624 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
625 This parameter is treated as uninitialized.</param>
626 <param name="skipSortOrderValidation">
627 <see langword="true" /> to always accept the data in the order it is presented, <see langword="false" /> to verify that the data is sorted correctly when the encoding rules say sorting was required (CER and DER).</param>
628 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
629 <exception cref="T:System.ArgumentOutOfRangeException">
630 <paramref name="ruleSet" /> is not defined.</exception>
631 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
635 The length encoding is not valid under the current encoding rules.
639 The contents are not valid under the current encoding rules.</exception>
640 <exception cref="T:System.ArgumentException">
641 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
643 <member name="M:System.Formats.Asn1.AsnDecoder.ReadUtcTime(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
644 <summary>Reads a UtcTime value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
645 <param name="source">The buffer containing encoded data.</param>
646 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
647 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
648 This parameter is treated as uninitialized.</param>
649 <param name="twoDigitYearMax">The largest year to represent with this value.
650 The default value, 2049, represents the 1950-2049 range for X.509 certificates.</param>
651 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
652 <exception cref="T:System.ArgumentOutOfRangeException">
653 <paramref name="ruleSet" /> is not defined.
657 <paramref name="twoDigitYearMax" /> is not in the range [99, 9999].</exception>
658 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
662 The length encoding is not valid under the current encoding rules.
666 The contents are not valid under the current encoding rules.</exception>
667 <exception cref="T:System.ArgumentException">
668 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
669 <returns>The decoded value.</returns>
671 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadBitString(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
672 <summary>Attempts to copy a Bit String value from <paramref name="source" /> with a specified tag under the specified encoding rules into <paramref name="destination" />.</summary>
673 <param name="source">The buffer containing encoded data.</param>
674 <param name="destination">The buffer in which to write.</param>
675 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
676 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.
677 This parameter is treated as uninitialized.</param>
678 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
679 This parameter is treated as uninitialized.</param>
680 <param name="bytesWritten">When this method returns, the total number of bytes written to <paramref name="destination" />.
681 This parameter is treated as uninitialized.</param>
682 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
683 <exception cref="T:System.ArgumentOutOfRangeException">
684 <paramref name="ruleSet" /> is not defined.</exception>
685 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
689 The length encoding is not valid under the current encoding rules.
693 The contents are not valid under the current encoding rules.</exception>
694 <exception cref="T:System.ArgumentException">
695 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
699 <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
701 <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the Bit String; otherwise, <see langword="false" />.</returns>
703 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadCharacterString(System.ReadOnlySpan{System.Byte},System.Span{System.Char},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.UniversalTagNumber,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
704 <summary>Reads a character string value from <paramref name="source" /> with a specified tag under the specified encoding rules, copying the decoded string into a a provided destination buffer.</summary>
705 <param name="source">The buffer containing encoded data.</param>
706 <param name="destination">The buffer in which to write.</param>
707 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
708 <param name="encodingType">One of the enumeration values which represents the value type to process.</param>
709 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
710 This parameter is treated as uninitialized.</param>
711 <param name="charsWritten">When this method returns, the number of chars written to <paramref name="destination" />.
712 This parameter is treated as uninitialized.</param>
713 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
714 <exception cref="T:System.ArgumentOutOfRangeException">
715 <paramref name="ruleSet" /> is not defined.
719 <paramref name="encodingType" /> is not a known character string type.</exception>
720 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
724 The length encoding is not valid under the current encoding rules.
728 The contents are not valid under the current encoding rules.
732 The string did not successfully decode.</exception>
733 <exception cref="T:System.ArgumentException">
734 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not the same as <paramref name="encodingType" />.</exception>
736 <see langword="true" /> and advances the reader if <paramref name="destination" /> had sufficient length to receive the value, otherwise <see langword="false" /> and the reader does not advance.</returns>
738 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadCharacterStringBytes(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.Asn1Tag,System.Int32@,System.Int32@)">
739 <summary>Attempts to read a character string value from <paramref name="source" /> with a specified tag under the specified encoding rules, copying the unprocessed bytes into the provided destination buffer.</summary>
740 <param name="source">The buffer containing encoded data.</param>
741 <param name="destination">The buffer in which to write.</param>
742 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
743 <param name="expectedTag">The tag to check for before reading.</param>
744 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
745 This parameter is treated as uninitialized.</param>
746 <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
747 <exception cref="T:System.ArgumentOutOfRangeException">
748 <paramref name="ruleSet" /> is not defined.</exception>
749 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
753 The length encoding is not valid under the current encoding rules.
757 The contents are not valid under the current encoding rules.</exception>
758 <exception cref="T:System.ArgumentException">
759 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not a character string tag type.
763 <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
765 <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the unprocessed character string; otherwise, <see langword="false" />.</returns>
767 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadEncodedValue(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.Asn1Tag@,System.Int32@,System.Int32@,System.Int32@)">
768 <summary>Attempts locate the contents range for the encoded value at the beginning of the <paramref name="source" /> buffer using the specified encoding rules.</summary>
769 <param name="source">The buffer containing encoded data.</param>
770 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
771 <param name="tag">When this method returns, the tag identifying the content.
772 This parameter is treated as uninitialized.</param>
773 <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
774 This parameter is treated as uninitialized.</param>
775 <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
776 This parameter is treated as uninitialized.</param>
777 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
778 This parameter is treated as uninitialized.</param>
779 <exception cref="T:System.ArgumentOutOfRangeException">
780 <paramref name="ruleSet" /> is not defined.</exception>
782 <see langword="true" /> if <paramref name="source" /> represents a valid structural encoding for the specified encoding rules; otherwise, <see langword="false" />.</returns>
784 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadInt32(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
785 <summary>Attempts to read an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules as a signed 32-bit value.</summary>
786 <param name="source">The buffer containing encoded data.</param>
787 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
788 <param name="value">On success, receives the interpreted numeric value.
789 This parameter is treated as uninitialized.</param>
790 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
791 This parameter is treated as uninitialized.</param>
792 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
793 <exception cref="T:System.ArgumentOutOfRangeException">
794 <paramref name="ruleSet" /> is not defined.</exception>
795 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
799 The length encoding is not valid under the current encoding rules.
803 The contents are not valid under the current encoding rules.</exception>
804 <exception cref="T:System.ArgumentException">
805 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
807 <see langword="true" /> if the Integer represents value is between <see cref="F:System.Int32.MinValue" /> and <see cref="F:System.Int32.MaxValue" />, inclusive; otherwise, <see langword="false" />.</returns>
809 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadInt64(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int64@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
810 <summary>Attempts to read an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules as a signed 64-bit value.</summary>
811 <param name="source">The buffer containing encoded data.</param>
812 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
813 <param name="value">On success, receives the interpreted numeric value.
814 This parameter is treated as uninitialized.</param>
815 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
816 This parameter is treated as uninitialized.</param>
817 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
818 <exception cref="T:System.ArgumentOutOfRangeException">
819 <paramref name="ruleSet" /> is not defined.</exception>
820 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
824 The length encoding is not valid under the current encoding rules.
828 The contents are not valid under the current encoding rules.</exception>
829 <exception cref="T:System.ArgumentException">
830 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
832 <see langword="true" /> if the Integer represents value is between <see cref="F:System.Int64.MinValue" /> and <see cref="F:System.Int64.MaxValue" />, inclusive; otherwise, <see langword="false" />.</returns>
834 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadOctetString(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
835 <summary>Attempts to get an Octet String value from <paramref name="source" /> with a specified tag under the specified encoding rules, copying the value into the provided destination buffer.</summary>
836 <param name="source">The buffer containing encoded data.</param>
837 <param name="destination">The buffer in which to write.</param>
838 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
839 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
840 This parameter is treated as uninitialized.</param>
841 <param name="bytesWritten">When this method returns, the total number of bytes written to <paramref name="destination" />.
842 This parameter is treated as uninitialized.</param>
843 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
844 <exception cref="T:System.ArgumentOutOfRangeException">
845 <paramref name="ruleSet" /> is not defined.</exception>
846 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
850 The length encoding is not valid under the current encoding rules.
854 The contents are not valid under the current encoding rules.</exception>
855 <exception cref="T:System.ArgumentException">
856 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
860 <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
862 <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the Octet String; otherwise, <see langword="false" />.</returns>
864 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadPrimitiveBitString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.ReadOnlySpan{System.Byte}@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
865 <summary>Attempts to get a Bit String value from <paramref name="source" /> with a specified tag under the specified encoding rules, if the value is contained in a single (primitive) encoding.</summary>
866 <param name="source">The buffer containing encoded data.</param>
867 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
868 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.
869 This parameter is treated as uninitialized.</param>
870 <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Bit String.
871 This parameter is treated as uninitialized.</param>
872 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
873 This parameter is treated as uninitialized.</param>
874 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
875 <exception cref="T:System.ArgumentOutOfRangeException">
876 <paramref name="ruleSet" /> is not defined.</exception>
877 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
881 The length encoding is not valid under the current encoding rules.
885 The contents are not valid under the current encoding rules.</exception>
886 <exception cref="T:System.ArgumentException">
887 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
889 <see langword="true" /> if the Bit String value has a primitive encoding and all of the bits reported as unused are set to 0; otherwise, <see langword="false" />.</returns>
891 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadPrimitiveCharacterStringBytes(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.Asn1Tag,System.ReadOnlySpan{System.Byte}@,System.Int32@)">
892 <summary>Attempts to get an unprocessed character string value from <paramref name="source" /> with a specified tag under the specified encoding rules, if the value is contained in a single (primitive) encoding.</summary>
893 <param name="source">The buffer containing encoded data.</param>
894 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
895 <param name="expectedTag">The tag to check for before reading.</param>
896 <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Bit String.
897 This parameter is treated as uninitialized.</param>
898 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
899 This parameter is treated as uninitialized.</param>
900 <exception cref="T:System.ArgumentOutOfRangeException">
901 <paramref name="ruleSet" /> is not defined.</exception>
902 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
906 The length encoding is not valid under the current encoding rules.
910 The contents are not valid under the current encoding rules.</exception>
911 <exception cref="T:System.ArgumentException">
912 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not a character string tag type.</exception>
914 <see langword="true" /> if the character string value has a primitive encoding; otherwise, <see langword="false" />.</returns>
916 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadPrimitiveOctetString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.ReadOnlySpan{System.Byte}@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
917 <summary>Attempts to get an Octet String value from <paramref name="source" /> with a specified tag under the specified encoding rules, if the value is contained in a single (primitive) encoding.</summary>
918 <param name="source">The buffer containing encoded data.</param>
919 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
920 <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Octet String.
921 This parameter is treated as uninitialized.</param>
922 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
923 This parameter is treated as uninitialized.</param>
924 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
925 <exception cref="T:System.ArgumentOutOfRangeException">
926 <paramref name="ruleSet" /> is not defined.</exception>
927 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
931 The length encoding is not valid under the current encoding rules.
935 The contents are not valid under the current encoding rules.</exception>
936 <exception cref="T:System.ArgumentException">
937 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
939 <see langword="true" /> if the Octet String value has a primitive encoding; otherwise, <see langword="false" />.</returns>
941 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadUInt32(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.UInt32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
942 <summary>Attempts to read an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules as an unsigned 32-bit value.</summary>
943 <param name="source">The buffer containing encoded data.</param>
944 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
945 <param name="value">On success, receives the interpreted numeric value.
946 This parameter is treated as uninitialized.</param>
947 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
948 This parameter is treated as uninitialized.</param>
949 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
950 <exception cref="T:System.ArgumentOutOfRangeException">
951 <paramref name="ruleSet" /> is not defined.</exception>
952 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
956 The length encoding is not valid under the current encoding rules.
960 The contents are not valid under the current encoding rules.</exception>
961 <exception cref="T:System.ArgumentException">
962 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
964 <see langword="true" /> if the Integer represents value is between <see cref="F:System.UInt32.MinValue" /> and <see cref="F:System.UInt32.MaxValue" />, inclusive; otherwise, <see langword="false" />.</returns>
966 <member name="M:System.Formats.Asn1.AsnDecoder.TryReadUInt64(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.UInt64@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
967 <summary>Attempts to read an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules as an unsigned 64-bit value.</summary>
968 <param name="source">The buffer containing encoded data.</param>
969 <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
970 <param name="value">On success, receives the interpreted numeric value.
971 This parameter is treated as uninitialized.</param>
972 <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
973 This parameter is treated as uninitialized.</param>
974 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
975 <exception cref="T:System.ArgumentOutOfRangeException">
976 <paramref name="ruleSet" /> is not defined.</exception>
977 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
981 The length encoding is not valid under the current encoding rules.
985 The contents are not valid under the current encoding rules.</exception>
986 <exception cref="T:System.ArgumentException">
987 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
989 <see langword="true" /> if the Integer represents value is between <see cref="F:System.UInt64.MinValue" /> and <see cref="F:System.UInt64.MaxValue" />, inclusive; otherwise, <see langword="false" />.</returns>
991 <member name="T:System.Formats.Asn1.AsnEncodingRules">
992 <summary>The encoding ruleset for an <see cref="T:System.Formats.Asn1.AsnReader" /> or <see cref="T:System.Formats.Asn1.AsnWriter" />.</summary>
994 <member name="F:System.Formats.Asn1.AsnEncodingRules.BER">
995 <summary>ITU-T X.690 Basic Encoding Rules.</summary>
997 <member name="F:System.Formats.Asn1.AsnEncodingRules.CER">
998 <summary>ITU-T X.690 Canonical Encoding Rules.</summary>
1000 <member name="F:System.Formats.Asn1.AsnEncodingRules.DER">
1001 <summary>ITU-T X.690 Distinguished Encoding Rules.</summary>
1003 <member name="T:System.Formats.Asn1.AsnReader">
1004 <summary>A stateful, forward-only reader for BER-, CER-, or DER-encoded ASN.1 data.</summary>
1006 <member name="M:System.Formats.Asn1.AsnReader.#ctor(System.ReadOnlyMemory{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.AsnReaderOptions)">
1007 <summary>Construct an <see cref="T:System.Formats.Asn1.AsnReader" /> over <paramref name="data" /> with a given ruleset.</summary>
1008 <param name="data">The data to read.</param>
1009 <param name="ruleSet">The encoding constraints for the reader.</param>
1010 <param name="options">Additional options for the reader.</param>
1011 <exception cref="T:System.ArgumentOutOfRangeException">
1012 <paramref name="ruleSet" /> is not defined.</exception>
1014 <member name="M:System.Formats.Asn1.AsnReader.PeekContentBytes">
1015 <summary>Get a <see cref="T:System.ReadOnlyMemory`1" /> view of the content octets (bytes) of the next encoded value without advancing the reader.</summary>
1016 <exception cref="T:System.Formats.Asn1.AsnContentException">The reader is positioned at a point where the tag or length is invalid under the current encoding rules.</exception>
1017 <returns>The bytes of the contents octets of the next encoded value.</returns>
1019 <member name="M:System.Formats.Asn1.AsnReader.PeekEncodedValue">
1020 <summary>Get a <see cref="T:System.ReadOnlyMemory`1" /> view of the next encoded value without advancing the reader. For indefinite length encodings this includes the End of Contents marker.</summary>
1021 <exception cref="T:System.Formats.Asn1.AsnContentException">The reader is positioned at a point where the tag or length is invalid under the current encoding rules.</exception>
1022 <returns>The bytes of the next encoded value.</returns>
1024 <member name="M:System.Formats.Asn1.AsnReader.PeekTag">
1025 <summary>Read the encoded tag at the next data position, without advancing the reader.</summary>
1026 <exception cref="T:System.Formats.Asn1.AsnContentException">A tag could not be decoded at the reader's current position.</exception>
1027 <returns>The decoded tag value.</returns>
1029 <member name="M:System.Formats.Asn1.AsnReader.ReadBitString(System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1030 <summary>Reads the next value as a BIT STRING with a specified tag, returning the value in a byte array.</summary>
1031 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
1032 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
1033 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1037 The length encoding is not valid under the current encoding rules.
1041 The contents are not valid under the current encoding rules.</exception>
1042 <exception cref="T:System.ArgumentException">
1043 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1044 <returns>A copy of the value in a newly allocated, precisely sized, array.</returns>
1046 <member name="M:System.Formats.Asn1.AsnReader.ReadBoolean(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1047 <summary>Reads the next value as a Boolean with a specified tag.</summary>
1048 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
1049 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1053 The length encoding is not valid under the current encoding rules.
1057 The contents are not valid under the current encoding rules.</exception>
1058 <exception cref="T:System.ArgumentException">
1059 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1060 <returns>The decoded value.</returns>
1062 <member name="M:System.Formats.Asn1.AsnReader.ReadCharacterString(System.Formats.Asn1.UniversalTagNumber,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1063 <summary>Reads the next value as character string with the specified tag and encoding type, returning the decoded value as a string.</summary>
1064 <param name="encodingType">One of the enumeration values representing the value type to process.</param>
1065 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
1066 <exception cref="T:System.ArgumentOutOfRangeException">
1067 <paramref name="encodingType" /> is not a known character string type.</exception>
1068 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1072 The length encoding is not valid under the current encoding rules.
1076 The contents are not valid under the current encoding rules.
1080 The string did not successfully decode.</exception>
1081 <exception cref="T:System.ArgumentException">
1082 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not the same as <paramref name="encodingType" />.</exception>
1083 <returns>The decoded value.</returns>
1085 <member name="M:System.Formats.Asn1.AsnReader.ReadEncodedValue">
1086 <summary>Get a <see cref="T:System.ReadOnlyMemory`1" /> view of the next encoded value, and advance the reader past it. For an indefinite length encoding this includes the End of Contents marker.</summary>
1087 <returns>A <see cref="T:System.ReadOnlyMemory`1" /> view of the next encoded value.</returns>
1089 <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedBytes(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1090 <summary>Reads the next value as a Enumerated with a specified tag, returning the contents as a <see cref="T:System.ReadOnlyMemory`1" /> over the original data.</summary>
1091 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
1092 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1096 The length encoding is not valid under the current encoding rules.
1100 The contents are not valid under the current encoding rules.</exception>
1101 <exception cref="T:System.ArgumentException">
1102 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1103 <returns>The bytes of the Enumerated value, in signed big-endian form.</returns>
1105 <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedValue(System.Type,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1106 <summary>Reads the next value as an Enumerated with a specified tag, converting it to the non-[<see cref="T:System.FlagsAttribute" />] enum specified by <paramref name="enumType" />.</summary>
1107 <param name="enumType">Type object representing the destination type.</param>
1108 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
1109 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1113 The length encoding is not valid under the current encoding rules.
1117 The contents are not valid under the current encoding rules.
1121 The encoded value is too big to fit in a <paramref name="enumType" /> value.</exception>
1122 <exception cref="T:System.ArgumentException">
1123 <paramref name="enumType" /> is not an enum type.
1127 <paramref name="enumType" /> was declared with <see cref="T:System.FlagsAttribute" />.
1131 <paramref name="enumType" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="enumType" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1132 <exception cref="T:System.ArgumentNullException">
1133 <paramref name="enumType" /> is <see langword="null" />.</exception>
1134 <returns>The Enumerated value converted to a <paramref name="enumType" />.</returns>
1136 <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedValue``1(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1137 <summary>Reads the next value as an Enumerated with a specified tag, converting it to the non-[<see cref="T:System.FlagsAttribute" />] enum specified by <typeparamref name="TEnum" />.</summary>
1138 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
1139 <typeparam name="TEnum">Destination enum type.</typeparam>
1140 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1144 The length encoding is not valid under the current encoding rules.
1148 The contents are not valid under the current encoding rules.
1152 The encoded value is too big to fit in a <paramref name="TEnum" /> value.</exception>
1153 <exception cref="T:System.ArgumentException">
1154 <typeparamref name="TEnum" /> is not an enum type.
1158 <typeparamref name="TEnum" /> was declared with <see cref="T:System.FlagsAttribute" />.
1162 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1163 <returns>The Enumerated value converted to a <typeparamref name="TEnum" />.</returns>
1165 <member name="M:System.Formats.Asn1.AsnReader.ReadGeneralizedTime(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1166 <summary>Reads the next value as a GeneralizedTime with a specified tag.</summary>
1167 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
1168 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1172 The length encoding is not valid under the current encoding rules.
1176 The contents are not valid under the current encoding rules.</exception>
1177 <exception cref="T:System.ArgumentException">
1178 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1179 <returns>The decoded value.</returns>
1181 <member name="M:System.Formats.Asn1.AsnReader.ReadInteger(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1182 <summary>Reads the next value as an Integer with a specified tag.</summary>
1183 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1184 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1188 The length encoding is not valid under the current encoding rules.
1192 The contents are not valid under the current encoding rules.</exception>
1193 <exception cref="T:System.ArgumentException">
1194 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1195 <returns>The decoded value.</returns>
1197 <member name="M:System.Formats.Asn1.AsnReader.ReadIntegerBytes(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1198 <summary>Reads the next value as a Integer with a specified tag, returning the contents as a <see cref="T:System.ReadOnlyMemory`1" /> over the original data.</summary>
1199 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1200 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1204 The length encoding is not valid under the current encoding rules.
1208 The contents are not valid under the current encoding rules.</exception>
1209 <exception cref="T:System.ArgumentException">
1210 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1211 <returns>The bytes of the Integer value, in signed big-endian form.</returns>
1213 <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitList(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1214 <summary>Reads the next value as a NamedBitList with a specified tag.</summary>
1215 <param name="expectedTag">The tag to check for before reading.</param>
1216 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1220 The length encoding is not valid under the current encoding rules.
1224 The contents are not valid under the current encoding rules.</exception>
1225 <exception cref="T:System.ArgumentException">
1226 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1227 <returns>The bits from the encoded value.</returns>
1229 <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitListValue(System.Type,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1230 <summary>Reads the next value as a NamedBitList with a specified tag, converting it to the [<see cref="T:System.FlagsAttribute" />] enum specified by <paramref name="flagsEnumType" />.</summary>
1231 <param name="flagsEnumType">Type object representing the destination type.</param>
1232 <param name="expectedTag">The tag to check for before reading.</param>
1233 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1237 The length encoding is not valid under the current encoding rules.
1241 The contents are not valid under the current encoding rules.
1245 The encoded value is too big to fit in a <paramref name="flagsEnumType" /> value.</exception>
1246 <exception cref="T:System.ArgumentException">
1247 <paramref name="flagsEnumType" /> is not an enum type.
1251 <paramref name="flagsEnumType" /> was not declared with <see cref="T:System.FlagsAttribute" />
1255 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1256 <exception cref="T:System.ArgumentNullException">
1257 <paramref name="flagsEnumType" /> is <see langword="null" /></exception>
1258 <returns>The NamedBitList value converted to a <paramref name="flagsEnumType" />.</returns>
1260 <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitListValue``1(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1261 <summary>Reads the next value as a NamedBitList with a specified tag, converting it to the [<see cref="T:System.FlagsAttribute" />] enum specified by <typeparamref name="TFlagsEnum" />.</summary>
1262 <param name="expectedTag">The tag to check for before reading.</param>
1263 <typeparam name="TFlagsEnum">Destination enum type.</typeparam>
1264 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1268 The length encoding is not valid under the current encoding rules.
1272 The contents are not valid under the current encoding rules.
1276 The encoded value is too big to fit in a <paramref name="TFlagsEnum" /> value.</exception>
1277 <exception cref="T:System.ArgumentException">
1278 <typeparamref name="TFlagsEnum" /> is not an enum type.
1282 <typeparamref name="TFlagsEnum" /> was not declared with <see cref="T:System.FlagsAttribute" />
1286 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1287 <returns>The NamedBitList value converted to a <typeparamref name="TFlagsEnum" />.</returns>
1289 <member name="M:System.Formats.Asn1.AsnReader.ReadNull(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1290 <summary>Reads the next value as a NULL with a specified tag.</summary>
1291 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 5).</param>
1292 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1296 The length encoding is not valid under the current encoding rules.
1300 The contents are not valid under the current encoding rules.</exception>
1301 <exception cref="T:System.ArgumentException">
1302 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1304 <member name="M:System.Formats.Asn1.AsnReader.ReadObjectIdentifier(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1305 <summary>Reads the next value as an OBJECT IDENTIFIER with a specified tag, returning the value in a dotted decimal format string.</summary>
1306 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 6).</param>
1307 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1311 The length encoding is not valid under the current encoding rules.
1315 The contents are not valid under the current encoding rules.</exception>
1316 <exception cref="T:System.ArgumentException">
1317 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1318 <returns>The object identifier value in a dotted decimal format string.</returns>
1320 <member name="M:System.Formats.Asn1.AsnReader.ReadOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1321 <summary>Reads the next value as an OCTET STRING with tag UNIVERSAL 4, returning the value in a byte array.</summary>
1322 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
1323 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1327 The length encoding is not valid under the current encoding rules.
1331 The contents are not valid under the current encoding rules.</exception>
1332 <exception cref="T:System.ArgumentException">
1333 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1334 <returns>A copy of the value in a newly allocated, precisely sized, array.</returns>
1336 <member name="M:System.Formats.Asn1.AsnReader.ReadSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1337 <summary>Reads the next value as a SEQUENCE or SEQUENCE-OF with the specified tag and returns the result as a new reader positioned at the first value in the sequence (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />).</summary>
1338 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 16).</param>
1339 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1343 The length encoding is not valid under the current encoding rules.
1347 The contents are not valid under the current encoding rules.</exception>
1348 <exception cref="T:System.ArgumentException">
1349 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1350 <returns>A new reader positioned at the first value in the sequence (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />).</returns>
1352 <member name="M:System.Formats.Asn1.AsnReader.ReadSetOf(System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1353 <summary>Reads the next value as a SET-OF with the specified tag and returns the result as a new reader positioned at the first value in the set-of (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />).</summary>
1354 <param name="skipSortOrderValidation">
1355 <see langword="true" /> to always accept the data in the order it is presented, <see langword="false" /> to verify that the data is sorted correctly when the encoding rules say sorting was required (CER and DER).</param>
1356 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
1357 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1361 The length encoding is not valid under the current encoding rules.
1365 The contents are not valid under the current encoding rules.</exception>
1366 <exception cref="T:System.ArgumentException">
1367 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1368 <returns>A new reader positioned at the first value in the set-of (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />).</returns>
1370 <member name="M:System.Formats.Asn1.AsnReader.ReadSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1371 <summary>Reads the next value as a SET-OF with the specified tag and returns the result as a new reader positioned at the first value in the set-of (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />), using the <see cref="P:System.Formats.Asn1.AsnReaderOptions.SkipSetSortOrderVerification" /> value from the constructor (default <see langword="false" />).</summary>
1372 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
1373 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1377 The length encoding is not valid under the current encoding rules.
1381 The contents are not valid under the current encoding rules.</exception>
1382 <exception cref="T:System.ArgumentException">
1383 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1384 <returns>A new reader positioned at the first value in the set-of (or with <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> == <see langword="false" />).</returns>
1386 <member name="M:System.Formats.Asn1.AsnReader.ReadUtcTime(System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1387 <summary>Reads the next value as a UTCTime with a specified tag.</summary>
1388 <param name="twoDigitYearMax">The largest year to represent with this value.</param>
1389 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 23).</param>
1390 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1394 The length encoding is not valid under the current encoding rules.
1398 The contents are not valid under the current encoding rules.</exception>
1399 <exception cref="T:System.ArgumentException">
1400 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1401 <returns>The decoded value.</returns>
1403 <member name="M:System.Formats.Asn1.AsnReader.ReadUtcTime(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1404 <summary>Reads the next value as a UTCTime with a specified tag using the <see cref="P:System.Formats.Asn1.AsnReaderOptions.UtcTimeTwoDigitYearMax" /> value from options passed to the constructor (with a default of 2049).</summary>
1405 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 23).</param>
1406 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1410 The length encoding is not valid under the current encoding rules.
1414 The contents are not valid under the current encoding rules.</exception>
1415 <exception cref="T:System.ArgumentException">
1416 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1417 <returns>The decoded value.</returns>
1419 <member name="M:System.Formats.Asn1.AsnReader.ThrowIfNotEmpty">
1420 <summary>Throws a standardized <see cref="T:System.Formats.Asn1.AsnContentException" /> if the reader has remaining data, performs no function if <see cref="P:System.Formats.Asn1.AsnReader.HasData" /> returns <see langword="false" />.</summary>
1422 <member name="M:System.Formats.Asn1.AsnReader.TryReadBitString(System.Span{System.Byte},System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1423 <summary>Reads the next value as a BIT STRING with a specified tag, copying the value into a provided destination buffer.</summary>
1424 <param name="destination">The buffer in which to write.</param>
1425 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
1426 <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
1427 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
1428 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1432 The length encoding is not valid under the current encoding rules.
1436 The contents are not valid under the current encoding rules.</exception>
1437 <exception cref="T:System.ArgumentException">
1438 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1440 <see langword="true" /> and advances the reader if <paramref name="destination" /> had sufficient length to receive the value, otherwise <see langword="false" /> and the reader does not advance.</returns>
1442 <member name="M:System.Formats.Asn1.AsnReader.TryReadCharacterString(System.Span{System.Char},System.Formats.Asn1.UniversalTagNumber,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1443 <summary>Reads the next value as character string with the specified tag and encoding type, copying the decoded value into a provided destination buffer.</summary>
1444 <param name="destination">The buffer in which to write.</param>
1445 <param name="encodingType">One of the enumeration values representing the value type to process.</param>
1446 <param name="charsWritten">On success, receives the number of chars written to <paramref name="destination" />.</param>
1447 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
1448 <exception cref="T:System.ArgumentOutOfRangeException">
1449 <paramref name="encodingType" /> is not a known character string type.</exception>
1450 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1454 The length encoding is not valid under the current encoding rules.
1458 The contents are not valid under the current encoding rules.
1462 The string did not successfully decode.</exception>
1463 <exception cref="T:System.ArgumentException">
1464 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not the same as <paramref name="encodingType" />.</exception>
1466 <see langword="true" /> and advances the reader if <paramref name="destination" /> had sufficient length to receive the value, otherwise <see langword="false" /> and the reader does not advance.</returns>
1468 <member name="M:System.Formats.Asn1.AsnReader.TryReadCharacterStringBytes(System.Span{System.Byte},System.Formats.Asn1.Asn1Tag,System.Int32@)">
1469 <summary>Reads the next value as character string with the specified tag, copying the unprocessed bytes into a provided destination buffer.</summary>
1470 <param name="destination">The buffer in which to write.</param>
1471 <param name="expectedTag">The tag to check for before reading.</param>
1472 <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
1473 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1477 The length encoding is not valid under the current encoding rules.
1481 The contents are not valid under the current encoding rules.</exception>
1482 <exception cref="T:System.ArgumentException">
1483 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not a character string tag type.</exception>
1485 <see langword="true" /> and advances the reader if <paramref name="destination" /> had sufficient length to receive the value, otherwise <see langword="false" /> and the reader does not advance.</returns>
1487 <member name="M:System.Formats.Asn1.AsnReader.TryReadInt32(System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1488 <summary>Attempts to read the next value as an Integer with a specified tag, as a signed 32-bit value.</summary>
1489 <param name="value">On success, receives the decoded value.</param>
1490 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1491 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1495 The length encoding is not valid under the current encoding rules.
1499 The contents are not valid under the current encoding rules.</exception>
1500 <exception cref="T:System.ArgumentException">
1501 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1503 <see langword="false" /> and does not advance the reader if the value is not between <see cref="F:System.Int32.MinValue" /> and <see cref="F:System.Int32.MaxValue" />, inclusive; otherwise <see langword="true" /> is returned and the reader advances.</returns>
1505 <member name="M:System.Formats.Asn1.AsnReader.TryReadInt64(System.Int64@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1506 <summary>Attempts to read the next value as an Integer with a specified tag, as a signed 64-bit value.</summary>
1507 <param name="value">On success, receives the decoded value.</param>
1508 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1509 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1513 The length encoding is not valid under the current encoding rules.
1517 The contents are not valid under the current encoding rules.</exception>
1518 <exception cref="T:System.ArgumentException">
1519 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1521 <see langword="false" /> and does not advance the reader if the value is not between <see cref="F:System.Int64.MinValue" /> and <see cref="F:System.Int64.MaxValue" />, inclusive; otherwise <see langword="true" /> is returned and the reader advances.</returns>
1523 <member name="M:System.Formats.Asn1.AsnReader.TryReadOctetString(System.Span{System.Byte},System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1524 <summary>Reads the next value as an OCTET STRING with a specified tag, copying the value into a provided destination buffer.</summary>
1525 <param name="destination">The buffer in which to write.</param>
1526 <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
1527 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
1528 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1532 The length encoding is not valid under the current encoding rules.
1536 The contents are not valid under the current encoding rules.</exception>
1537 <exception cref="T:System.ArgumentException">
1538 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1540 <see langword="true" /> and advances the reader if <paramref name="destination" /> had sufficient length to receive the value, otherwise <see langword="false" /> and the reader does not advance.</returns>
1542 <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveBitString(System.Int32@,System.ReadOnlyMemory{System.Byte}@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1543 <summary>Reads the next value as a BIT STRING with a specified tag, returning the contents as a <see cref="T:System.ReadOnlyMemory`1" /> over the original data.</summary>
1544 <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
1545 <param name="value">On success, receives a <see cref="T:System.ReadOnlyMemory`1" /> over the original data corresponding to the value of the BIT STRING.</param>
1546 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
1547 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1551 The length encoding is not valid under the current encoding rules.
1555 The contents are not valid under the current encoding rules.</exception>
1556 <exception cref="T:System.ArgumentException">
1557 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1559 <see langword="true" /> and advances the reader if the BIT STRING value had a primitive encoding, <see langword="false" /> and does not advance the reader if it had a constructed encoding.</returns>
1561 <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveCharacterStringBytes(System.Formats.Asn1.Asn1Tag,System.ReadOnlyMemory{System.Byte}@)">
1562 <summary>Reads the next value as a character with a specified tag, returning the contents as an unprocessed <see cref="T:System.ReadOnlyMemory`1" /> over the original data.</summary>
1563 <param name="expectedTag">The tag to check for before reading.</param>
1564 <param name="contents">On success, receives a <see cref="T:System.ReadOnlyMemory`1" /> over the original data corresponding to the value of the character string.</param>
1565 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1569 The length encoding is not valid under the current encoding rules.
1573 The contents are not valid under the current encoding rules.</exception>
1574 <exception cref="T:System.ArgumentException">
1575 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not a character string tag type.</exception>
1577 <see langword="true" /> and advances the reader if the character string value had a primitive encoding, <see langword="false" /> and does not advance the reader if it had a constructed encoding.</returns>
1579 <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveOctetString(System.ReadOnlyMemory{System.Byte}@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1580 <summary>Attempts to read the next value as an OCTET STRING with a specified tag, returning the contents as a <see cref="T:System.ReadOnlyMemory`1" /> over the original data.</summary>
1581 <param name="contents">On success, receives a <see cref="T:System.ReadOnlyMemory`1" /> over the original data corresponding to the value of the OCTET STRING.</param>
1582 <param name="expectedTag">The tag to check for before reading.</param>
1583 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1587 The length encoding is not valid under the current encoding rules.
1591 The contents are not valid under the current encoding rules.</exception>
1592 <exception cref="T:System.ArgumentException">
1593 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1595 <see langword="true" /> and advances the reader if the OCTET STRING value had a primitive encoding, <see langword="false" /> and does not advance the reader if it had a constructed encoding.</returns>
1597 <member name="M:System.Formats.Asn1.AsnReader.TryReadUInt32(System.UInt32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1598 <summary>Attempts to read the next value as an Integer with a specified tag, as an unsigned 32-bit value.</summary>
1599 <param name="value">On success, receives the decoded value.</param>
1600 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1601 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1605 The length encoding is not valid under the current encoding rules.
1609 The contents are not valid under the current encoding rules.</exception>
1610 <exception cref="T:System.ArgumentException">
1611 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1613 <see langword="false" /> and does not advance the reader if the value is not between <see cref="F:System.UInt32.MinValue" /> and <see cref="F:System.UInt32.MaxValue" />, inclusive; otherwise <see langword="true" /> is returned and the reader advances.</returns>
1615 <member name="M:System.Formats.Asn1.AsnReader.TryReadUInt64(System.UInt64@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1616 <summary>Attempts to read the next value as an Integer with a specified tag, as an unsigned 64-bit value.</summary>
1617 <param name="value">On success, receives the decoded value.</param>
1618 <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
1619 <exception cref="T:System.Formats.Asn1.AsnContentException">The next value does not have the correct tag.
1623 The length encoding is not valid under the current encoding rules.
1627 The contents are not valid under the current encoding rules.</exception>
1628 <exception cref="T:System.ArgumentException">
1629 <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="expectedTag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1631 <see langword="false" /> and does not advance the reader if the value is not between <see cref="F:System.UInt64.MinValue" /> and <see cref="F:System.UInt64.MaxValue" />, inclusive; otherwise <see langword="true" /> is returned and the reader advances.</returns>
1633 <member name="P:System.Formats.Asn1.AsnReader.HasData">
1634 <summary>Gets an indication of whether the reader has remaining data available to process.</summary>
1636 <see langword="true" /> if there is more data available for the reader to process; otherwise, <see langword="false" />.</returns>
1638 <member name="P:System.Formats.Asn1.AsnReader.RuleSet">
1639 <summary>Gets the encoding rules in use by this reader.</summary>
1640 <returns>The encoding rules in use by this reader.</returns>
1642 <member name="T:System.Formats.Asn1.AsnReaderOptions">
1643 <summary>Specifies options that modify the behavior of an <see cref="T:System.Formats.Asn1.AsnReader" />.</summary>
1645 <member name="P:System.Formats.Asn1.AsnReaderOptions.SkipSetSortOrderVerification">
1646 <summary>Gets or sets a value that indicates whether the reader should bypass sort ordering on a Set or Set-Of value.</summary>
1648 <see langword="true" /> if the reader should not validate that a Set or Set-Of value is sorted correctly for the current encoding rules; otherwise <see langword="false" />.
1649 The default is <see langword="false" />.</returns>
1651 <member name="P:System.Formats.Asn1.AsnReaderOptions.UtcTimeTwoDigitYearMax">
1652 <summary>Gets or sets the largest year to represent with a UtcTime value.</summary>
1653 <returns>The largest year to represent with a UtcTime value. The default is 2049.</returns>
1655 <member name="T:System.Formats.Asn1.AsnWriter">
1656 <summary>A writer for BER-, CER-, and DER-encoded ASN.1 data.</summary>
1658 <member name="M:System.Formats.Asn1.AsnWriter.#ctor(System.Formats.Asn1.AsnEncodingRules)">
1659 <summary>Create a new <see cref="T:System.Formats.Asn1.AsnWriter" /> with a given set of encoding rules.</summary>
1660 <param name="ruleSet">The encoding constraints for the writer.</param>
1661 <exception cref="T:System.ArgumentOutOfRangeException">
1662 <paramref name="ruleSet" /> is not defined.</exception>
1664 <member name="M:System.Formats.Asn1.AsnWriter.CopyTo(System.Formats.Asn1.AsnWriter)">
1665 <summary>Copy the value of this writer into another.</summary>
1666 <param name="destination">The writer to receive the value.</param>
1667 <exception cref="T:System.ArgumentNullException">
1668 <paramref name="destination" /> is <see langword="null" />.</exception>
1669 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.
1671 This writer is empty.
1673 This writer represents more than one top-level value.
1675 This writer's value is encoded in a manner that is not compatible with the ruleset for the destination writer.</exception>
1677 <member name="M:System.Formats.Asn1.AsnWriter.Encode">
1678 <summary>Return a new array containing the encoded value.</summary>
1679 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</exception>
1680 <returns>A precisely-sized array containing the encoded value.</returns>
1682 <member name="M:System.Formats.Asn1.AsnWriter.Encode(System.Span{System.Byte})">
1683 <summary>Writes the encoded representation of the data to <paramref name="destination" />.</summary>
1684 <param name="destination">The buffer in which to write.</param>
1685 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</exception>
1686 <returns>The number of bytes written to <paramref name="destination" />.</returns>
1688 <member name="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.Formats.Asn1.AsnWriter)">
1689 <summary>Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to <paramref name="other" />.</summary>
1690 <param name="other">The instance to compare encoded values against.</param>
1691 <exception cref="T:System.ArgumentNullException">
1692 <paramref name="other" /> is <see langword="null" />.</exception>
1693 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</exception>
1695 <see langword="true" /> if the pending encoded data is identical to <paramref name="other" />, <see langword="false" /> otherwise.</returns>
1697 <member name="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.ReadOnlySpan{System.Byte})">
1698 <summary>Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to <paramref name="other" />.</summary>
1699 <param name="other">The encoded value to compare against.</param>
1700 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</exception>
1702 <see langword="true" /> if the pending encoded data is identical to <paramref name="other" />, <see langword="false" /> otherwise.</returns>
1704 <member name="M:System.Formats.Asn1.AsnWriter.GetEncodedLength">
1705 <summary>Gets the number of bytes that would be written by <see cref="M:System.Formats.Asn1.AsnWriter.TryEncode(System.Span{System.Byte},System.Int32@)" />.</summary>
1706 <exception cref="T:System.InvalidOperationException">
1707 <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />, <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />, or <see cref="M:System.Formats.Asn1.AsnWriter.PushOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> was called without the corresponding Pop method.</exception>
1708 <returns>The number of bytes that would be written by <see cref="M:System.Formats.Asn1.AsnWriter.TryEncode(System.Span{System.Byte},System.Int32@)" />.</returns>
1710 <member name="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1711 <summary>Indicate that the open Octet String with the tag UNIVERSAL 4 is closed, returning the writer to the parent context.</summary>
1712 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
1713 <exception cref="T:System.ArgumentException">
1714 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1715 <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within an Octet String with the specified tag.</exception>
1717 <member name="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1718 <summary>Indicate that the open Sequence with the specified tag is closed, returning the writer to the parent context.</summary>
1719 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
1720 <exception cref="T:System.ArgumentException">
1721 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1722 <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within a Sequence with the specified tag.</exception>
1724 <member name="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1725 <summary>Indicate that the open Set-Of with the specified tag is closed, returning the writer to the parent context.</summary>
1726 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
1727 <exception cref="T:System.ArgumentException">
1728 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1729 <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within a Set-Of with the specified tag.</exception>
1731 <member name="M:System.Formats.Asn1.AsnWriter.PushOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1732 <summary>Begin writing an Octet String value with a specified tag.</summary>
1733 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
1734 <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
1736 <member name="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1737 <summary>Begin writing a Sequence with a specified tag.</summary>
1738 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
1739 <exception cref="T:System.ArgumentException">
1740 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1741 <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
1743 <member name="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1744 <summary>Begin writing a Set-Of with a specified tag.</summary>
1745 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
1746 <exception cref="T:System.ArgumentException">
1747 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1748 <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
1750 <member name="M:System.Formats.Asn1.AsnWriter.Reset">
1751 <summary>Reset the writer to have no data, without releasing resources.</summary>
1753 <member name="M:System.Formats.Asn1.AsnWriter.TryEncode(System.Span{System.Byte},System.Int32@)">
1754 <summary>Attempts to write the encoded representation of the data to <paramref name="destination" />.</summary>
1755 <param name="destination">The buffer in which to write.</param>
1756 <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
1757 <exception cref="T:System.InvalidOperationException">A <see cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> has not been closed via <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> or <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</exception>
1759 <see langword="true" /> if the encode succeeded, <see langword="false" /> if <paramref name="destination" /> is too small.</returns>
1761 <member name="M:System.Formats.Asn1.AsnWriter.WriteBitString(System.ReadOnlySpan{System.Byte},System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1762 <summary>Write a Bit String value with a specified tag.</summary>
1763 <param name="value">The value to write.</param>
1764 <param name="unusedBitCount">The number of trailing bits which are not semantic.</param>
1765 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
1766 <exception cref="T:System.ArgumentException">
1767 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1769 <paramref name="value" /> has length 0 and <paramref name="unusedBitCount" /> is not 0
1771 <paramref name="value" /> is not empty and any of the bits identified by <paramref name="unusedBitCount" /> is set.</exception>
1772 <exception cref="T:System.ArgumentOutOfRangeException">
1773 <paramref name="unusedBitCount" /> is not in the range [0,7].</exception>
1775 <member name="M:System.Formats.Asn1.AsnWriter.WriteBoolean(System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1776 <summary>Write a Boolean value with a specified tag.</summary>
1777 <param name="value">The value to write.</param>
1778 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 1).</param>
1779 <exception cref="T:System.ArgumentException">
1780 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method</exception>
1782 <member name="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.ReadOnlySpan{System.Char},System.Nullable{System.Formats.Asn1.Asn1Tag})">
1783 <summary>Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.</summary>
1784 <param name="encodingType">One of the enumeration values representing the encoding to use.</param>
1785 <param name="str">The string to write.</param>
1786 <param name="tag">The tag to write, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
1787 <exception cref="T:System.ArgumentOutOfRangeException">
1788 <paramref name="encodingType" /> is not a restricted character string encoding type.
1790 <paramref name="encodingType" /> is a restricted character string encoding type that is not currently supported by this method.</exception>
1791 <exception cref="T:System.ArgumentException">
1792 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1794 <member name="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.String,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1795 <summary>Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.</summary>
1796 <param name="encodingType">One of the enumeration values representing the encoding to use.</param>
1797 <param name="value">The string to write.</param>
1798 <param name="tag">The tag to write, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
1799 <exception cref="T:System.ArgumentNullException">
1800 <paramref name="value" /> is <see langword="null" /></exception>
1801 <exception cref="T:System.ArgumentOutOfRangeException">
1802 <paramref name="encodingType" /> is not a restricted character string encoding type.
1804 <paramref name="encodingType" /> is a restricted character string encoding type that is not currently supported by this method.</exception>
1805 <exception cref="T:System.ArgumentException">
1806 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1808 <member name="M:System.Formats.Asn1.AsnWriter.WriteEncodedValue(System.ReadOnlySpan{System.Byte})">
1809 <summary>Write a single value which has already been encoded.</summary>
1810 <param name="value">The value to write.</param>
1811 <exception cref="T:System.ArgumentException">
1812 <paramref name="value" /> could not be read under the current encoding rules.
1814 <paramref name="value" /> has data beyond the end of the first value.</exception>
1816 <member name="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1817 <summary>Write a non-[<see cref="T:System.FlagsAttribute" />] enum value as an Enumerated with tag UNIVERSAL 10.</summary>
1818 <param name="value">The boxed enumeration value to write.</param>
1819 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 10).</param>
1820 <exception cref="T:System.ArgumentNullException">
1821 <paramref name="value" /> is <see langword="null" />.</exception>
1822 <exception cref="T:System.ArgumentException">
1823 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1825 <paramref name="value" /> is not a boxed enum value.
1827 the unboxed type of <paramref name="value" /> is declared [<see cref="T:System.FlagsAttribute" />].</exception>
1829 <member name="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1830 <summary>Write a non-[<see cref="T:System.FlagsAttribute" />] enum value as an Enumerated with tag UNIVERSAL 10.</summary>
1831 <param name="value">The boxed enumeration value to write.</param>
1832 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 10).</param>
1833 <typeparam name="TEnum">The non-[<see cref="T:System.FlagsAttribute" />] enumeration type to write.</typeparam>
1834 <exception cref="T:System.ArgumentNullException">
1835 <paramref name="value" /> is <see langword="null" />.</exception>
1836 <exception cref="T:System.ArgumentException">
1837 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1839 <typeparamref name="TEnum" /> is not an enum.
1841 <typeparamref name="TEnum" /> is declared [<see cref="T:System.FlagsAttribute" />].</exception>
1843 <member name="M:System.Formats.Asn1.AsnWriter.WriteGeneralizedTime(System.DateTimeOffset,System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1844 <summary>Write the provided <see cref="T:System.DateTimeOffset" /> as a GeneralizedTime with a specified UNIVERSAL 24, optionally excluding the fractional seconds.</summary>
1845 <param name="value">The value to write.</param>
1846 <param name="omitFractionalSeconds">
1847 <see langword="true" /> to treat the fractional seconds in <paramref name="value" /> as 0 even if a non-zero value is present.</param>
1848 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 24).</param>
1849 <exception cref="T:System.ArgumentException">
1850 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1852 <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.Int64,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1853 <summary>Write an Integer value with a specified tag.</summary>
1854 <param name="value">The value to write.</param>
1855 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
1856 <exception cref="T:System.ArgumentException">
1857 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1859 <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.Numerics.BigInteger,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1860 <summary>Write an Integer value with a specified tag.</summary>
1861 <param name="value">The value to write.</param>
1862 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
1863 <exception cref="T:System.ArgumentException">
1864 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1866 <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
1867 <summary>Write an Integer value with a specified tag.</summary>
1868 <param name="value">The integer value to write, in signed big-endian byte order.</param>
1869 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
1870 <exception cref="T:System.ArgumentException">
1871 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1872 <exception cref="T:System.ArgumentException">the 9 most significant bits are all set.
1874 the 9 most significant bits are all unset.</exception>
1876 <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.UInt64,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1877 <summary>Write an Integer value with a specified tag.</summary>
1878 <param name="value">The value to write.</param>
1879 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
1880 <exception cref="T:System.ArgumentException">
1881 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1883 <member name="M:System.Formats.Asn1.AsnWriter.WriteIntegerUnsigned(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
1884 <summary>Write an Integer value with a specified tag.</summary>
1885 <param name="value">The integer value to write, in unsigned big-endian byte order.</param>
1886 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
1887 <exception cref="T:System.ArgumentException">
1888 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1889 <exception cref="T:System.ArgumentException">the 9 most significant bits are all unset.</exception>
1891 <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList(System.Collections.BitArray,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1892 <summary>Write a bit array value as a NamedBitList with a specified tag.</summary>
1893 <param name="value">The bits to write.</param>
1894 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
1895 <exception cref="T:System.ArgumentException">
1896 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1897 <exception cref="T:System.ArgumentNullException">
1898 <paramref name="value" /> is <see langword="null" />.</exception>
1900 <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1901 <summary>Write a [<see cref="T:System.FlagsAttribute" />] enum value as a NamedBitList with a specified tag.</summary>
1902 <param name="value">The boxed enumeration value to write.</param>
1903 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
1904 <exception cref="T:System.ArgumentException">
1905 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1907 <paramref name="value" /> is not a boxed enum value.
1909 the unboxed type of <paramref name="value" /> is not declared [<see cref="T:System.FlagsAttribute" />].</exception>
1910 <exception cref="T:System.ArgumentNullException">
1911 <paramref name="value" /> is <see langword="null" />.</exception>
1913 <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1914 <summary>Write a [<see cref="T:System.FlagsAttribute" />] enum value as a NamedBitList with a specified tag.</summary>
1915 <param name="value">The enumeration value to write.</param>
1916 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
1917 <typeparam name="TEnum">The [<see cref="T:System.FlagsAttribute" />] enumeration type to write.</typeparam>
1918 <exception cref="T:System.ArgumentException">
1919 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1921 <typeparamref name="TEnum" /> is not an enum value.
1923 <typeparamref name="TEnum" /> is not declared [<see cref="T:System.FlagsAttribute" />].</exception>
1925 <member name="M:System.Formats.Asn1.AsnWriter.WriteNull(System.Nullable{System.Formats.Asn1.Asn1Tag})">
1926 <summary>Write NULL with a specified tag.</summary>
1927 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 5).</param>
1928 <exception cref="T:System.ArgumentException">
1929 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1931 <member name="M:System.Formats.Asn1.AsnWriter.WriteObjectIdentifier(System.ReadOnlySpan{System.Char},System.Nullable{System.Formats.Asn1.Asn1Tag})">
1932 <summary>Write an Object Identifier with a specified tag.</summary>
1933 <param name="oidValue">The object identifier to write.</param>
1934 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 6).</param>
1935 <exception cref="T:System.ArgumentException">
1936 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1938 <paramref name="oidValue" /> is not a valid dotted decimal object identifier.</exception>
1940 <member name="M:System.Formats.Asn1.AsnWriter.WriteObjectIdentifier(System.String,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1941 <summary>Write an Object Identifier with a specified tag.</summary>
1942 <param name="oidValue">The object identifier to write.</param>
1943 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 6).</param>
1944 <exception cref="T:System.ArgumentException">
1945 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.
1947 <paramref name="oidValue" /> is not a valid dotted decimal object identifier.</exception>
1948 <exception cref="T:System.ArgumentNullException">
1949 <paramref name="oidValue" /> is <see langword="null" />.</exception>
1951 <member name="M:System.Formats.Asn1.AsnWriter.WriteOctetString(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
1952 <summary>Write an Octet String value with a specified tag.</summary>
1953 <param name="value">The value to write.</param>
1954 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
1955 <exception cref="T:System.ArgumentException">
1956 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1958 <member name="M:System.Formats.Asn1.AsnWriter.WriteUtcTime(System.DateTimeOffset,System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1959 <summary>Write the provided value as a UTCTime with a specified tag, provided the year is in the allowed range.</summary>
1960 <param name="value">The value to write.</param>
1961 <param name="twoDigitYearMax">The maximum valid year for <paramref name="value" />, after conversion to UTC.
1962 For the X.509 Time.utcTime range of 1950-2049, pass <c>2049</c>.</param>
1963 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 23).</param>
1964 <exception cref="T:System.ArgumentException">
1965 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1966 <exception cref="T:System.ArgumentOutOfRangeException">
1967 <paramref name="value" />.<see cref="P:System.DateTimeOffset.Year" /> (after conversion to UTC) is not in the range (<paramref name="twoDigitYearMax" /> - 100, <paramref name="twoDigitYearMax" />].</exception>
1969 <member name="M:System.Formats.Asn1.AsnWriter.WriteUtcTime(System.DateTimeOffset,System.Nullable{System.Formats.Asn1.Asn1Tag})">
1970 <summary>Write the provided value as a UTCTime with a specified tag, accepting the two-digit year as valid in context.</summary>
1971 <param name="value">The value to write.</param>
1972 <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 23).</param>
1973 <exception cref="T:System.ArgumentException">
1974 <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagClass" /> is <see cref="F:System.Formats.Asn1.TagClass.Universal" />, but <paramref name="tag" />.<see cref="P:System.Formats.Asn1.Asn1Tag.TagValue" /> is not correct for the method.</exception>
1976 <member name="P:System.Formats.Asn1.AsnWriter.RuleSet">
1977 <summary>Gets the encoding rules in use by this writer.</summary>
1978 <returns>The encoding rules in use by this writer.</returns>
1980 <member name="T:System.Formats.Asn1.AsnWriter.Scope">
1981 <summary>Provides an <see cref="T:System.IDisposable" /> target for safely closing an opened tag by using a lexical scope as a logical scope.</summary>
1983 <member name="M:System.Formats.Asn1.AsnWriter.Scope.Dispose">
1984 <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
1986 <member name="T:System.Formats.Asn1.TagClass">
1987 <summary>The tag class for a particular ASN.1 tag.</summary>
1989 <member name="F:System.Formats.Asn1.TagClass.Application">
1990 <summary>The Application tag class.</summary>
1992 <member name="F:System.Formats.Asn1.TagClass.ContextSpecific">
1993 <summary>The Context-Specific tag class.</summary>
1995 <member name="F:System.Formats.Asn1.TagClass.Private">
1996 <summary>The Private tag class.</summary>
1998 <member name="F:System.Formats.Asn1.TagClass.Universal">
1999 <summary>The Universal tag class.</summary>
2001 <member name="T:System.Formats.Asn1.UniversalTagNumber">
2002 <summary>Tag assignments for the UNIVERSAL class in ITU-T X.680.</summary>
2004 <member name="F:System.Formats.Asn1.UniversalTagNumber.BitString">
2005 <summary>The universal class tag value for Bit String.</summary>
2007 <member name="F:System.Formats.Asn1.UniversalTagNumber.BMPString">
2008 <summary>The universal class tag value for BMPString.</summary>
2010 <member name="F:System.Formats.Asn1.UniversalTagNumber.Boolean">
2011 <summary>The universal class tag value for Boolean.</summary>
2013 <member name="F:System.Formats.Asn1.UniversalTagNumber.Date">
2014 <summary>The universal class tag value for Date.</summary>
2016 <member name="F:System.Formats.Asn1.UniversalTagNumber.DateTime">
2017 <summary>The universal class tag value for Date-Time.</summary>
2019 <member name="F:System.Formats.Asn1.UniversalTagNumber.Duration">
2020 <summary>The universal class tag value for Duration.</summary>
2022 <member name="F:System.Formats.Asn1.UniversalTagNumber.Embedded">
2023 <summary>The universal class tag value for Embedded-PDV.</summary>
2025 <member name="F:System.Formats.Asn1.UniversalTagNumber.EndOfContents">
2026 <summary>The reserved identifier for the End-of-Contents marker in an indefinite length encoding.</summary>
2028 <member name="F:System.Formats.Asn1.UniversalTagNumber.Enumerated">
2029 <summary>The universal class tag value for Enumerated.</summary>
2031 <member name="F:System.Formats.Asn1.UniversalTagNumber.External">
2032 <summary>The universal class tag value for External.</summary>
2034 <member name="F:System.Formats.Asn1.UniversalTagNumber.GeneralizedTime">
2035 <summary>The universal class tag value for GeneralizedTime.</summary>
2037 <member name="F:System.Formats.Asn1.UniversalTagNumber.GeneralString">
2038 <summary>The universal class tag value for GeneralString.</summary>
2040 <member name="F:System.Formats.Asn1.UniversalTagNumber.GraphicString">
2041 <summary>The universal class tag value for GraphicString.</summary>
2043 <member name="F:System.Formats.Asn1.UniversalTagNumber.IA5String">
2044 <summary>The universal class tag value for IA5String.</summary>
2046 <member name="F:System.Formats.Asn1.UniversalTagNumber.InstanceOf">
2047 <summary>The universal class tag value for Instance-Of.</summary>
2049 <member name="F:System.Formats.Asn1.UniversalTagNumber.Integer">
2050 <summary>The universal class tag value for Integer.</summary>
2052 <member name="F:System.Formats.Asn1.UniversalTagNumber.ISO646String">
2053 <summary>The universal class tag value for ISO646String (VisibleString).</summary>
2055 <member name="F:System.Formats.Asn1.UniversalTagNumber.Null">
2056 <summary>The universal class tag value for Null.</summary>
2058 <member name="F:System.Formats.Asn1.UniversalTagNumber.NumericString">
2059 <summary>The universal class tag value for NumericString.</summary>
2061 <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectDescriptor">
2062 <summary>The universal class tag value for Object Descriptor.</summary>
2064 <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectIdentifier">
2065 <summary>The universal class tag value for Object Identifier.</summary>
2067 <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectIdentifierIRI">
2068 <summary>The universal class tag value for Object Identifier Internationalized Resource Identifier (IRI).</summary>
2070 <member name="F:System.Formats.Asn1.UniversalTagNumber.OctetString">
2071 <summary>The universal class tag value for Octet String.</summary>
2073 <member name="F:System.Formats.Asn1.UniversalTagNumber.PrintableString">
2074 <summary>The universal class tag value for PrintableString.</summary>
2076 <member name="F:System.Formats.Asn1.UniversalTagNumber.Real">
2077 <summary>The universal class tag value for Real.</summary>
2079 <member name="F:System.Formats.Asn1.UniversalTagNumber.RelativeObjectIdentifier">
2080 <summary>The universal class tag value for Relative Object Identifier.</summary>
2082 <member name="F:System.Formats.Asn1.UniversalTagNumber.RelativeObjectIdentifierIRI">
2083 <summary>The universal class tag value for Relative Object Identifier Internationalized Resource Identifier (IRI).</summary>
2085 <member name="F:System.Formats.Asn1.UniversalTagNumber.Sequence">
2086 <summary>The universal class tag value for Sequence.</summary>
2088 <member name="F:System.Formats.Asn1.UniversalTagNumber.SequenceOf">
2089 <summary>The universal class tag value for Sequence-Of.</summary>
2091 <member name="F:System.Formats.Asn1.UniversalTagNumber.Set">
2092 <summary>The universal class tag value for Set.</summary>
2094 <member name="F:System.Formats.Asn1.UniversalTagNumber.SetOf">
2095 <summary>The universal class tag value for Set-Of.</summary>
2097 <member name="F:System.Formats.Asn1.UniversalTagNumber.T61String">
2098 <summary>The universal class tag value for T61String (TeletexString).</summary>
2100 <member name="F:System.Formats.Asn1.UniversalTagNumber.TeletexString">
2101 <summary>The universal class tag value for TeletexString (T61String).</summary>
2103 <member name="F:System.Formats.Asn1.UniversalTagNumber.Time">
2104 <summary>The universal class tag value for Time.</summary>
2106 <member name="F:System.Formats.Asn1.UniversalTagNumber.TimeOfDay">
2107 <summary>The universal class tag value for Time-Of-Day.</summary>
2109 <member name="F:System.Formats.Asn1.UniversalTagNumber.UniversalString">
2110 <summary>The universal class tag value for UniversalString.</summary>
2112 <member name="F:System.Formats.Asn1.UniversalTagNumber.UnrestrictedCharacterString">
2113 <summary>The universal class tag value for an unrestricted character string.</summary>
2115 <member name="F:System.Formats.Asn1.UniversalTagNumber.UtcTime">
2116 <summary>The universal class tag value for UTCTime.</summary>
2118 <member name="F:System.Formats.Asn1.UniversalTagNumber.UTF8String">
2119 <summary>The universal class tag value for UTF8String.</summary>
2121 <member name="F:System.Formats.Asn1.UniversalTagNumber.VideotexString">
2122 <summary>The universal class tag value for VideotexString.</summary>
2124 <member name="F:System.Formats.Asn1.UniversalTagNumber.VisibleString">
2125 <summary>The universal class tag value for VisibleString (ISO646String).</summary>