System.Formats.Asn1.xml 162 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>System.Formats.Asn1</name>
  5. </assembly>
  6. <members>
  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>
  9. </member>
  10. <member name="F:System.Formats.Asn1.Asn1Tag.Boolean">
  11. <summary>Represents the universal class tag for a Boolean value.</summary>
  12. </member>
  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>
  15. </member>
  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>
  18. </member>
  19. <member name="F:System.Formats.Asn1.Asn1Tag.Enumerated">
  20. <summary>Represents the universal class tag for an Enumerated value.</summary>
  21. </member>
  22. <member name="F:System.Formats.Asn1.Asn1Tag.GeneralizedTime">
  23. <summary>Represents the universal class tag for a GeneralizedTime value.</summary>
  24. </member>
  25. <member name="F:System.Formats.Asn1.Asn1Tag.Integer">
  26. <summary>Represents the universal class tag for an Integer value.</summary>
  27. </member>
  28. <member name="F:System.Formats.Asn1.Asn1Tag.Null">
  29. <summary>Represents the universal class tag for a <see langword="null" /> value.</summary>
  30. </member>
  31. <member name="F:System.Formats.Asn1.Asn1Tag.ObjectIdentifier">
  32. <summary>Represents the universal class tag for an Object Identifier value.</summary>
  33. </member>
  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>
  36. </member>
  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>
  39. </member>
  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>
  42. </member>
  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>
  45. </member>
  46. <member name="F:System.Formats.Asn1.Asn1Tag.UtcTime">
  47. <summary>Represents the universal class tag for a UtcTime value.</summary>
  48. </member>
  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.
  57. -or-
  58. <paramref name="tagValue" /> is negative.</exception>
  59. </member>
  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>
  67. </member>
  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>
  71. </member>
  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>
  75. </member>
  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>
  79. </member>
  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>
  86. </member>
  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" /> &lt; <see cref="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize" />.</exception>
  92. <returns>The number of bytes written to <paramref name="destination" />.</returns>
  93. </member>
  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>
  97. <returns>
  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>
  99. </member>
  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>
  103. <returns>
  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>
  105. </member>
  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>
  109. </member>
  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>
  113. <returns>
  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>
  115. </member>
  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>
  120. <returns>
  121. <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> have the same BER encoding, <see langword="false" /> otherwise.</returns>
  122. </member>
  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>
  127. <returns>
  128. <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> have a different BER encoding, <see langword="false" /> otherwise.</returns>
  129. </member>
  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>
  133. </member>
  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>
  139. <returns>
  140. <see langword="true" /> if a tag was correctly decoded; otherwise, <see langword="false" />.</returns>
  141. </member>
  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>
  146. <returns>
  147. <see langword="false" /> if <paramref name="destination" />.<see cref="P:System.Span`1.Length" /> &lt; <see cref="M:System.Formats.Asn1.Asn1Tag.CalculateEncodedSize" />(), <see langword="true" /> otherwise.</returns>
  148. </member>
  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>
  151. </member>
  152. <member name="P:System.Formats.Asn1.Asn1Tag.TagClass">
  153. <summary>The tag class to which this tag belongs.</summary>
  154. </member>
  155. <member name="P:System.Formats.Asn1.Asn1Tag.TagValue">
  156. <summary>The numeric value for this tag.</summary>
  157. </member>
  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>
  160. </member>
  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>
  163. </member>
  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>
  168. </member>
  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>
  172. </member>
  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>
  177. </member>
  178. <member name="T:System.Formats.Asn1.AsnDecoder">
  179. <summary>Provides stateless methods for decoding BER-, CER-, or DER-encoded ASN.1 data.</summary>
  180. </member>
  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.
  193. -or-
  194. the length encoding is not valid under the current encoding rules.
  195. -or-
  196. the contents are not valid under the current encoding rules.</exception>
  197. <exception cref="T:System.ArgumentException">
  198. <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>
  199. <returns>An array containing the contents of the Bit String value.</returns>
  200. </member>
  201. <member name="M:System.Formats.Asn1.AsnDecoder.ReadBoolean(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  202. <summary>Reads a Boolean value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  203. <param name="source">The buffer containing encoded data.</param>
  204. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  205. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  206. This parameter is treated as uninitialized.</param>
  207. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
  208. <exception cref="T:System.ArgumentOutOfRangeException">
  209. <paramref name="ruleSet" /> is not defined.</exception>
  210. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  211. -or-
  212. the length encoding is not valid under the current encoding rules.
  213. -or-
  214. the contents are not valid under the current encoding rules.</exception>
  215. <exception cref="T:System.ArgumentException">
  216. <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>
  217. <returns>The decoded value.</returns>
  218. </member>
  219. <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})">
  220. <summary>Reads the next value as character string with the specified tag and encoding type, returning the decoded string.</summary>
  221. <param name="source">The buffer containing encoded data.</param>
  222. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  223. <param name="encodingType">One of the enumeration values which represents the value type to process.</param>
  224. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  225. This parameter is treated as uninitialized.</param>
  226. <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>
  227. <exception cref="T:System.ArgumentOutOfRangeException">
  228. <paramref name="ruleSet" /> is not defined.
  229. -or-
  230. <paramref name="encodingType" /> is not a known character string type.</exception>
  231. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  232. -or-
  233. the length encoding is not valid under the current encoding rules.
  234. -or-
  235. the contents are not valid under the current encoding rules.
  236. -or-
  237. the string did not successfully decode.</exception>
  238. <exception cref="T:System.ArgumentException">
  239. <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>
  240. <returns>The decoded value.</returns>
  241. </member>
  242. <member name="M:System.Formats.Asn1.AsnDecoder.ReadEncodedValue(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Int32@,System.Int32@)">
  243. <summary>Locates the contents range for the encoded value at the beginning of the <paramref name="source" /> buffer using the specified encoding rules.</summary>
  244. <param name="source">The buffer containing encoded data.</param>
  245. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  246. <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
  247. This parameter is treated as uninitialized.</param>
  248. <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
  249. This parameter is treated as uninitialized.</param>
  250. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  251. This parameter is treated as uninitialized.</param>
  252. <exception cref="T:System.ArgumentOutOfRangeException">
  253. <paramref name="ruleSet" /> is not defined.</exception>
  254. <exception cref="T:System.Formats.Asn1.AsnContentException">
  255. <paramref name="source" /> does not represent a value encoded under the specified encoding rules.</exception>
  256. <returns>The tag identifying the content.</returns>
  257. </member>
  258. <member name="M:System.Formats.Asn1.AsnDecoder.ReadEnumeratedBytes(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  259. <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>
  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="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  263. This parameter is treated as uninitialized.</param>
  264. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  265. <exception cref="T:System.ArgumentOutOfRangeException">
  266. <paramref name="ruleSet" /> is not defined.</exception>
  267. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  268. -or-
  269. the length encoding is not valid under the current encoding rules.
  270. -or-
  271. the contents are not valid under the current encoding rules.</exception>
  272. <exception cref="T:System.ArgumentException">
  273. <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>
  274. <returns>The slice of the buffer containing the bytes of the Enumerated value, in signed big-endian form.</returns>
  275. </member>
  276. <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})">
  277. <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>
  278. <param name="source">The buffer containing encoded data.</param>
  279. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  280. <param name="enumType">Type object representing the destination type.</param>
  281. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  282. This parameter is treated as uninitialized.</param>
  283. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  284. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  285. -or-
  286. the length encoding is not valid under the current encoding rules.
  287. -or-
  288. the contents are not valid under the current encoding rules.
  289. -or-
  290. the encoded value is too big to fit in a <paramref name="enumType" /> value.</exception>
  291. <exception cref="T:System.ArgumentException">
  292. <paramref name="enumType" /> is not an enum type.
  293. -or-
  294. <paramref name="enumType" /> was declared with <see cref="T:System.FlagsAttribute" />.
  295. -or-
  296. <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>
  297. <exception cref="T:System.ArgumentNullException">
  298. <paramref name="enumType" /> is <see langword="null" />.</exception>
  299. <returns>The Enumerated value converted to a <paramref name="enumType" />.</returns>
  300. </member>
  301. <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})">
  302. <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>
  303. <param name="source">The buffer containing encoded data.</param>
  304. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  305. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  306. This parameter is treated as uninitialized.</param>
  307. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  308. <typeparam name="TEnum">Destination enum type</typeparam>
  309. <exception cref="T:System.ArgumentOutOfRangeException">
  310. <paramref name="ruleSet" /> is not defined.</exception>
  311. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  312. -or-
  313. the length encoding is not valid under the current encoding rules.
  314. -or-
  315. the contents are not valid under the current encoding rules.
  316. -or-
  317. the encoded value is too big to fit in a <typeparamref name="TEnum" /> value.</exception>
  318. <exception cref="T:System.ArgumentException">
  319. <typeparamref name="TEnum" /> is not an enum type.
  320. -or-
  321. <typeparamref name="TEnum" /> was declared with <see cref="T:System.FlagsAttribute" />.
  322. -or-
  323. <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>
  324. <returns>The Enumerated value converted to a <typeparamref name="TEnum" />.</returns>
  325. </member>
  326. <member name="M:System.Formats.Asn1.AsnDecoder.ReadGeneralizedTime(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  327. <summary>Reads a GeneralizedTime value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  328. <param name="source">The buffer containing encoded data.</param>
  329. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  330. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  331. This parameter is treated as uninitialized.</param>
  332. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
  333. <exception cref="T:System.ArgumentOutOfRangeException">
  334. <paramref name="ruleSet" /> is not defined.</exception>
  335. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  336. -or-
  337. the length encoding is not valid under the current encoding rules.
  338. -or-
  339. the contents are not valid under the current encoding rules.</exception>
  340. <exception cref="T:System.ArgumentException">
  341. <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>
  342. <returns>The decoded value.</returns>
  343. </member>
  344. <member name="M:System.Formats.Asn1.AsnDecoder.ReadInteger(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  345. <summary>Reads an Integer value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  346. <param name="source">The buffer containing encoded data.</param>
  347. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  348. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  349. This parameter is treated as uninitialized.</param>
  350. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  351. <exception cref="T:System.ArgumentOutOfRangeException">
  352. <paramref name="ruleSet" /> is not defined.</exception>
  353. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  354. -or-
  355. the length encoding is not valid under the current encoding rules.
  356. -or-
  357. the contents are not valid under the current encoding rules.</exception>
  358. <exception cref="T:System.ArgumentException">
  359. <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>
  360. <returns>The decoded numeric value.</returns>
  361. </member>
  362. <member name="M:System.Formats.Asn1.AsnDecoder.ReadIntegerBytes(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  363. <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>
  364. <param name="source">The buffer containing encoded data.</param>
  365. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  366. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  367. This parameter is treated as uninitialized.</param>
  368. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  369. <exception cref="T:System.ArgumentOutOfRangeException">
  370. <paramref name="ruleSet" /> is not defined.</exception>
  371. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  372. -or-
  373. the length encoding is not valid under the current encoding rules.
  374. -or-
  375. the contents are not valid under the current encoding rules.</exception>
  376. <exception cref="T:System.ArgumentException">
  377. <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>
  378. <returns>The slice of the buffer containing the bytes of the Integer value, in signed big-endian form.</returns>
  379. </member>
  380. <member name="M:System.Formats.Asn1.AsnDecoder.ReadNamedBitList(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  381. <summary>Reads a NamedBitList from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  382. <param name="source">The buffer containing encoded data.</param>
  383. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  384. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  385. This parameter is treated as uninitialized.</param>
  386. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
  387. <exception cref="T:System.ArgumentOutOfRangeException">
  388. <paramref name="ruleSet" /> is not defined.</exception>
  389. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  390. -or-
  391. the length encoding is not valid under the current encoding rules.
  392. -or-
  393. the contents are not valid under the current encoding rules.</exception>
  394. <exception cref="T:System.ArgumentException">
  395. <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>
  396. <returns>The bits from the encoded value.</returns>
  397. </member>
  398. <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})">
  399. <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>
  400. <param name="source">The buffer containing encoded data.</param>
  401. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  402. <param name="flagsEnumType">Type object representing the destination type.</param>
  403. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  404. This parameter is treated as uninitialized.</param>
  405. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
  406. <exception cref="T:System.ArgumentOutOfRangeException">
  407. <paramref name="ruleSet" /> is not defined.</exception>
  408. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  409. -or-
  410. the length encoding is not valid under the current encoding rules.
  411. -or-
  412. the contents are not valid under the current encoding rules.
  413. -or- - the encoded value is too big to fit in a <paramref name="flagsEnumType" /> value.</exception>
  414. <exception cref="T:System.ArgumentException">
  415. <paramref name="flagsEnumType" /> is not an enum type.
  416. -or-
  417. <paramref name="flagsEnumType" /> was not declared with <see cref="T:System.FlagsAttribute" />
  418. -or-
  419. <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>
  420. <exception cref="T:System.ArgumentNullException">
  421. <paramref name="flagsEnumType" /> is <see langword="null" /></exception>
  422. <returns>The NamedBitList value converted to a <paramref name="flagsEnumType" />.</returns>
  423. </member>
  424. <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})">
  425. <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>
  426. <param name="source">The buffer containing encoded data.</param>
  427. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  428. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  429. This parameter is treated as uninitialized.</param>
  430. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
  431. <typeparam name="TFlagsEnum">Destination enum type</typeparam>
  432. <exception cref="T:System.ArgumentOutOfRangeException">
  433. <paramref name="ruleSet" /> is not defined.</exception>
  434. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  435. -or-
  436. the length encoding is not valid under the current encoding rules.
  437. -or-
  438. the contents are not valid under the current encoding rules.
  439. -or-
  440. the encoded value is too big to fit in a <typeparamref name="TFlagsEnum" /> value.</exception>
  441. <exception cref="T:System.ArgumentException">
  442. <typeparamref name="TFlagsEnum" /> is not an enum type.
  443. -or-
  444. <typeparamref name="TFlagsEnum" /> was not declared with <see cref="T:System.FlagsAttribute" />
  445. -or-
  446. <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>
  447. <returns>The NamedBitList value converted to a <typeparamref name="TFlagsEnum" />.</returns>
  448. </member>
  449. <member name="M:System.Formats.Asn1.AsnDecoder.ReadNull(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  450. <summary>Reads a <see langword="null" /> value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  451. <param name="source">The buffer containing encoded data.</param>
  452. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  453. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  454. This parameter is treated as uninitialized.</param>
  455. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 5).</param>
  456. <exception cref="T:System.ArgumentOutOfRangeException">
  457. <paramref name="ruleSet" /> is not defined.</exception>
  458. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  459. -or-
  460. the length encoding is not valid under the current encoding rules.
  461. -or-
  462. the contents are not valid under the current encoding rules.</exception>
  463. <exception cref="T:System.ArgumentException">
  464. <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>
  465. </member>
  466. <member name="M:System.Formats.Asn1.AsnDecoder.ReadObjectIdentifier(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  467. <summary>Reads an Object Identifier value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  468. <param name="source">The buffer containing encoded data.</param>
  469. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  470. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  471. This parameter is treated as uninitialized.</param>
  472. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 6).</param>
  473. <exception cref="T:System.ArgumentOutOfRangeException">
  474. <paramref name="ruleSet" /> is not defined.</exception>
  475. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  476. -or-
  477. the length encoding is not valid under the current encoding rules.
  478. -or-
  479. the contents are not valid under the current encoding rules.</exception>
  480. <exception cref="T:System.ArgumentException">
  481. <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>
  482. <returns>The decoded object identifier, in dotted-decimal notation.</returns>
  483. </member>
  484. <member name="M:System.Formats.Asn1.AsnDecoder.ReadOctetString(System.ReadOnlySpan{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  485. <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>
  486. <param name="source">The buffer containing encoded data.</param>
  487. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  488. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  489. This parameter is treated as uninitialized.</param>
  490. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
  491. <exception cref="T:System.ArgumentOutOfRangeException">
  492. <paramref name="ruleSet" /> is not defined.</exception>
  493. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  494. -or-
  495. the length encoding is not valid under the current encoding rules.
  496. -or-
  497. the contents are not valid under the current encoding rules.</exception>
  498. <exception cref="T:System.ArgumentException">
  499. <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>
  500. <returns>An array containing the contents of the Octet String value.</returns>
  501. </member>
  502. <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})">
  503. <summary>Reads a Sequence or Sequence-Of value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  504. <param name="source">The buffer containing encoded data.</param>
  505. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  506. <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
  507. This parameter is treated as uninitialized.</param>
  508. <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
  509. This parameter is treated as uninitialized.</param>
  510. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  511. This parameter is treated as uninitialized.</param>
  512. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 16).</param>
  513. <exception cref="T:System.ArgumentOutOfRangeException">
  514. <paramref name="ruleSet" /> is not defined.</exception>
  515. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  516. -or-
  517. the length encoding is not valid under the current encoding rules.
  518. -or-
  519. the contents are not valid under the current encoding rules.</exception>
  520. <exception cref="T:System.ArgumentException">
  521. <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>
  522. </member>
  523. <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})">
  524. <summary>Reads a Set-Of value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  525. <param name="source">The buffer containing encoded data.</param>
  526. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  527. <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
  528. This parameter is treated as uninitialized.</param>
  529. <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
  530. This parameter is treated as uninitialized.</param>
  531. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  532. This parameter is treated as uninitialized.</param>
  533. <param name="skipSortOrderValidation">
  534. <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>
  535. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
  536. <exception cref="T:System.ArgumentOutOfRangeException">
  537. <paramref name="ruleSet" /> is not defined.</exception>
  538. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  539. -or-
  540. the length encoding is not valid under the current encoding rules.
  541. -or-
  542. the contents are not valid under the current encoding rules.</exception>
  543. <exception cref="T:System.ArgumentException">
  544. <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>
  545. </member>
  546. <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})">
  547. <summary>Reads a UtcTime value from <paramref name="source" /> with a specified tag under the specified encoding rules.</summary>
  548. <param name="source">The buffer containing encoded data.</param>
  549. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  550. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  551. This parameter is treated as uninitialized.</param>
  552. <param name="twoDigitYearMax">The largest year to represent with this value.
  553. The default value, 2049, represents the 1950-2049 range for X.509 certificates.</param>
  554. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
  555. <exception cref="T:System.ArgumentOutOfRangeException">
  556. <paramref name="ruleSet" /> is not defined.
  557. -or-
  558. <paramref name="twoDigitYearMax" /> is not in the range [99, 9999].</exception>
  559. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  560. -or-
  561. the length encoding is not valid under the current encoding rules.
  562. -or-
  563. the contents are not valid under the current encoding rules.</exception>
  564. <exception cref="T:System.ArgumentException">
  565. <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>
  566. <returns>The decoded value.</returns>
  567. </member>
  568. <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})">
  569. <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>
  570. <param name="source">The buffer containing encoded data.</param>
  571. <param name="destination">The buffer in which to write.</param>
  572. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  573. <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.
  574. This parameter is treated as uninitialized.</param>
  575. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  576. This parameter is treated as uninitialized.</param>
  577. <param name="bytesWritten">When this method returns, the total number of bytes written to <paramref name="destination" />.
  578. This parameter is treated as uninitialized.</param>
  579. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
  580. <exception cref="T:System.ArgumentOutOfRangeException">
  581. <paramref name="ruleSet" /> is not defined.</exception>
  582. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  583. -or-
  584. the length encoding is not valid under the current encoding rules.
  585. -or-
  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.
  589. -or-
  590. <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
  591. <returns>
  592. <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the Bit String; otherwise, <see langword="false" />.</returns>
  593. </member>
  594. <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})">
  595. <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>
  596. <param name="source">The buffer containing encoded data.</param>
  597. <param name="destination">The buffer in which to write.</param>
  598. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  599. <param name="encodingType">One of the enumeration values which represents the value type to process.</param>
  600. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  601. This parameter is treated as uninitialized.</param>
  602. <param name="charsWritten">When this method returns, the number of chars written to <paramref name="destination" />.
  603. This parameter is treated as uninitialized.</param>
  604. <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>
  605. <exception cref="T:System.ArgumentOutOfRangeException">
  606. <paramref name="ruleSet" /> is not defined.
  607. -or-
  608. <paramref name="encodingType" /> is not a known character string type.</exception>
  609. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  610. -or-
  611. the length encoding is not valid under the current encoding rules.
  612. -or-
  613. the contents are not valid under the current encoding rules.
  614. -or-
  615. the string did not successfully decode.</exception>
  616. <exception cref="T:System.ArgumentException">
  617. <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>
  618. <returns>
  619. <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>
  620. </member>
  621. <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@)">
  622. <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>
  623. <param name="source">The buffer containing encoded data.</param>
  624. <param name="destination">The buffer in which to write.</param>
  625. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  626. <param name="expectedTag">The tag to check for before reading.</param>
  627. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  628. This parameter is treated as uninitialized.</param>
  629. <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
  630. <exception cref="T:System.ArgumentOutOfRangeException">
  631. <paramref name="ruleSet" /> is not defined.</exception>
  632. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  633. -or-
  634. the length encoding is not valid under the current encoding rules.
  635. -or-
  636. the contents are not valid under the current encoding rules.</exception>
  637. <exception cref="T:System.ArgumentException">
  638. <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.
  639. -or-
  640. <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
  641. <returns>
  642. <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the unprocessed character string; otherwise, <see langword="false" />.</returns>
  643. </member>
  644. <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@)">
  645. <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>
  646. <param name="source">The buffer containing encoded data.</param>
  647. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  648. <param name="tag">When this method returns, the tag identifying the content.
  649. This parameter is treated as uninitialized.</param>
  650. <param name="contentOffset">When this method returns, the offset of the content payload relative to the start of <paramref name="source" />.
  651. This parameter is treated as uninitialized.</param>
  652. <param name="contentLength">When this method returns, the number of bytes in the content payload (which may be 0).
  653. This parameter is treated as uninitialized.</param>
  654. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  655. This parameter is treated as uninitialized.</param>
  656. <exception cref="T:System.ArgumentOutOfRangeException">
  657. <paramref name="ruleSet" /> is not defined.</exception>
  658. <returns>
  659. <see langword="true" /> if <paramref name="source" /> represents a valid structural encoding for the specified encoding rules; otherwise, <see langword="false" />.</returns>
  660. </member>
  661. <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})">
  662. <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>
  663. <param name="source">The buffer containing encoded data.</param>
  664. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  665. <param name="value">On success, receives the interpreted numeric value.
  666. This parameter is treated as uninitialized.</param>
  667. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  668. This parameter is treated as uninitialized.</param>
  669. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  670. <exception cref="T:System.ArgumentOutOfRangeException">
  671. <paramref name="ruleSet" /> is not defined.</exception>
  672. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  673. -or-
  674. the length encoding is not valid under the current encoding rules.
  675. -or-
  676. the contents are not valid under the current encoding rules.</exception>
  677. <exception cref="T:System.ArgumentException">
  678. <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>
  679. <returns>
  680. <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>
  681. </member>
  682. <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})">
  683. <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>
  684. <param name="source">The buffer containing encoded data.</param>
  685. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  686. <param name="value">On success, receives the interpreted numeric value.
  687. This parameter is treated as uninitialized.</param>
  688. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  689. This parameter is treated as uninitialized.</param>
  690. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  691. <exception cref="T:System.ArgumentOutOfRangeException">
  692. <paramref name="ruleSet" /> is not defined.</exception>
  693. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  694. -or-
  695. the length encoding is not valid under the current encoding rules.
  696. -or-
  697. the contents are not valid under the current encoding rules.</exception>
  698. <exception cref="T:System.ArgumentException">
  699. <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>
  700. <returns>
  701. <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>
  702. </member>
  703. <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})">
  704. <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>
  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="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  709. This parameter is treated as uninitialized.</param>
  710. <param name="bytesWritten">When this method returns, the total number of bytes written to <paramref name="destination" />.
  711. This parameter is treated as uninitialized.</param>
  712. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
  713. <exception cref="T:System.ArgumentOutOfRangeException">
  714. <paramref name="ruleSet" /> is not defined.</exception>
  715. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  716. -or-
  717. the length encoding is not valid under the current encoding rules.
  718. -or-
  719. the contents are not valid under the current encoding rules.</exception>
  720. <exception cref="T:System.ArgumentException">
  721. <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.
  722. -or-
  723. <paramref name="destination" /> overlaps <paramref name="source" />.</exception>
  724. <returns>
  725. <see langword="true" /> if <paramref name="destination" /> is large enough to receive the value of the Octet String; otherwise, <see langword="false" />.</returns>
  726. </member>
  727. <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})">
  728. <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>
  729. <param name="source">The buffer containing encoded data.</param>
  730. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  731. <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.
  732. This parameter is treated as uninitialized.</param>
  733. <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Bit String.
  734. This parameter is treated as uninitialized.</param>
  735. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  736. This parameter is treated as uninitialized.</param>
  737. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 3).</param>
  738. <exception cref="T:System.ArgumentOutOfRangeException">
  739. <paramref name="ruleSet" /> is not defined.</exception>
  740. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  741. -or-
  742. the length encoding is not valid under the current encoding rules.
  743. -or-
  744. the contents are not valid under the current encoding rules.</exception>
  745. <exception cref="T:System.ArgumentException">
  746. <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>
  747. <returns>
  748. <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>
  749. </member>
  750. <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@)">
  751. <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>
  752. <param name="source">The buffer containing encoded data.</param>
  753. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  754. <param name="expectedTag">The tag to check for before reading.</param>
  755. <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Bit String.
  756. This parameter is treated as uninitialized.</param>
  757. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  758. This parameter is treated as uninitialized.</param>
  759. <exception cref="T:System.ArgumentOutOfRangeException">
  760. <paramref name="ruleSet" /> is not defined.</exception>
  761. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  762. -or-
  763. the length encoding is not valid under the current encoding rules.
  764. -or-
  765. the contents are not valid under the current encoding rules.</exception>
  766. <exception cref="T:System.ArgumentException">
  767. <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>
  768. <returns>
  769. <see langword="true" /> if the character string value has a primitive encoding; otherwise, <see langword="false" />.</returns>
  770. </member>
  771. <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})">
  772. <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>
  773. <param name="source">The buffer containing encoded data.</param>
  774. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  775. <param name="value">On success, receives a slice of the input buffer that corresponds to the value of the Octet String.
  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. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
  780. <exception cref="T:System.ArgumentOutOfRangeException">
  781. <paramref name="ruleSet" /> is not defined.</exception>
  782. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  783. -or-
  784. the length encoding is not valid under the current encoding rules.
  785. -or-
  786. the contents are not valid under the current encoding rules.</exception>
  787. <exception cref="T:System.ArgumentException">
  788. <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>
  789. <returns>
  790. <see langword="true" /> if the Octet String value has a primitive encoding; otherwise, <see langword="false" />.</returns>
  791. </member>
  792. <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})">
  793. <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>
  794. <param name="source">The buffer containing encoded data.</param>
  795. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  796. <param name="value">On success, receives the interpreted numeric value.
  797. This parameter is treated as uninitialized.</param>
  798. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  799. This parameter is treated as uninitialized.</param>
  800. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  801. <exception cref="T:System.ArgumentOutOfRangeException">
  802. <paramref name="ruleSet" /> is not defined.</exception>
  803. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  804. -or-
  805. the length encoding is not valid under the current encoding rules.
  806. -or-
  807. the contents are not valid under the current encoding rules.</exception>
  808. <exception cref="T:System.ArgumentException">
  809. <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>
  810. <returns>
  811. <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>
  812. </member>
  813. <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})">
  814. <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>
  815. <param name="source">The buffer containing encoded data.</param>
  816. <param name="ruleSet">The encoding constraints to use when interpreting the data.</param>
  817. <param name="value">On success, receives the interpreted numeric value.
  818. This parameter is treated as uninitialized.</param>
  819. <param name="bytesConsumed">When this method returns, the total number of bytes for the encoded value.
  820. This parameter is treated as uninitialized.</param>
  821. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  822. <exception cref="T:System.ArgumentOutOfRangeException">
  823. <paramref name="ruleSet" /> is not defined.</exception>
  824. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  825. -or-
  826. the length encoding is not valid under the current encoding rules.
  827. -or-
  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>
  831. <returns>
  832. <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>
  833. </member>
  834. <member name="T:System.Formats.Asn1.AsnEncodingRules">
  835. <summary>The encoding ruleset for an <see cref="T:System.Formats.Asn1.AsnReader" /> or <see cref="T:System.Formats.Asn1.AsnWriter" />.</summary>
  836. </member>
  837. <member name="F:System.Formats.Asn1.AsnEncodingRules.BER">
  838. <summary>ITU-T X.690 Basic Encoding Rules</summary>
  839. </member>
  840. <member name="F:System.Formats.Asn1.AsnEncodingRules.CER">
  841. <summary>ITU-T X.690 Canonical Encoding Rules</summary>
  842. </member>
  843. <member name="F:System.Formats.Asn1.AsnEncodingRules.DER">
  844. <summary>ITU-T X.690 Distinguished Encoding Rules</summary>
  845. </member>
  846. <member name="T:System.Formats.Asn1.AsnReader">
  847. <summary>A stateful, forward-only reader for BER-, CER-, or DER-encoded ASN.1 data.</summary>
  848. </member>
  849. <member name="M:System.Formats.Asn1.AsnReader.#ctor(System.ReadOnlyMemory{System.Byte},System.Formats.Asn1.AsnEncodingRules,System.Formats.Asn1.AsnReaderOptions)">
  850. <summary>Construct an <see cref="T:System.Formats.Asn1.AsnReader" /> over <paramref name="data" /> with a given ruleset.</summary>
  851. <param name="data">The data to read.</param>
  852. <param name="ruleSet">The encoding constraints for the reader.</param>
  853. <param name="options">Additional options for the reader.</param>
  854. <exception cref="T:System.ArgumentOutOfRangeException">
  855. <paramref name="ruleSet" /> is not defined.</exception>
  856. </member>
  857. <member name="M:System.Formats.Asn1.AsnReader.PeekContentBytes">
  858. <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>
  859. <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>
  860. <returns>The bytes of the contents octets of the next encoded value.</returns>
  861. </member>
  862. <member name="M:System.Formats.Asn1.AsnReader.PeekEncodedValue">
  863. <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>
  864. <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>
  865. <returns>The bytes of the next encoded value.</returns>
  866. </member>
  867. <member name="M:System.Formats.Asn1.AsnReader.PeekTag">
  868. <summary>Read the encoded tag at the next data position, without advancing the reader.</summary>
  869. <exception cref="T:System.Formats.Asn1.AsnContentException">a tag could not be decoded at the reader's current position.</exception>
  870. <returns>The decoded tag value.</returns>
  871. </member>
  872. <member name="M:System.Formats.Asn1.AsnReader.ReadBitString(System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  873. <summary>Reads the next value as a BIT STRING with a specified tag, returning the value in a byte array.</summary>
  874. <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
  875. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
  876. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  877. -or-
  878. the length encoding is not valid under the current encoding rules.
  879. -or-
  880. the contents are not valid under the current encoding rules.</exception>
  881. <exception cref="T:System.ArgumentException">
  882. <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>
  883. <returns>A copy of the value in a newly allocated, precisely sized, array.</returns>
  884. </member>
  885. <member name="M:System.Formats.Asn1.AsnReader.ReadBoolean(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  886. <summary>Reads the next value as a Boolean with a specified tag.</summary>
  887. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
  888. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  889. -or-
  890. the length encoding is not valid under the current encoding rules.
  891. -or-
  892. the contents are not valid under the current encoding rules.</exception>
  893. <exception cref="T:System.ArgumentException">
  894. <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>
  895. <returns>The decoded value.</returns>
  896. </member>
  897. <member name="M:System.Formats.Asn1.AsnReader.ReadCharacterString(System.Formats.Asn1.UniversalTagNumber,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  898. <summary>Reads the next value as character string with the specified tag and encoding type, returning the decoded value as a string.</summary>
  899. <param name="encodingType">One of the enumeration values representing the value type to process.</param>
  900. <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>
  901. <exception cref="T:System.ArgumentOutOfRangeException">
  902. <paramref name="encodingType" /> is not a known character string type.</exception>
  903. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  904. -or-
  905. the length encoding is not valid under the current encoding rules.
  906. -or-
  907. the contents are not valid under the current encoding rules.
  908. -or-
  909. the string did not successfully decode.</exception>
  910. <exception cref="T:System.ArgumentException">
  911. <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>
  912. <returns>The decoded value.</returns>
  913. </member>
  914. <member name="M:System.Formats.Asn1.AsnReader.ReadEncodedValue">
  915. <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>
  916. <returns>A <see cref="T:System.ReadOnlyMemory`1" /> view of the next encoded value.</returns>
  917. </member>
  918. <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedBytes(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  919. <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>
  920. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  921. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  922. -or-
  923. the length encoding is not valid under the current encoding rules.
  924. -or-
  925. the contents are not valid under the current encoding rules.</exception>
  926. <exception cref="T:System.ArgumentException">
  927. <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>
  928. <returns>The bytes of the Enumerated value, in signed big-endian form.</returns>
  929. </member>
  930. <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedValue(System.Type,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  931. <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>
  932. <param name="enumType">Type object representing the destination type.</param>
  933. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  934. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  935. -or-
  936. the length encoding is not valid under the current encoding rules.
  937. -or-
  938. the contents are not valid under the current encoding rules.
  939. -or-
  940. the encoded value is too big to fit in a <paramref name="enumType" /> value.</exception>
  941. <exception cref="T:System.ArgumentException">
  942. <paramref name="enumType" /> is not an enum type.
  943. -or-
  944. <paramref name="enumType" /> was declared with <see cref="T:System.FlagsAttribute" />.
  945. -or-
  946. <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>
  947. <exception cref="T:System.ArgumentNullException">
  948. <paramref name="enumType" /> is <see langword="null" />.</exception>
  949. <returns>The Enumerated value converted to a <paramref name="enumType" />.</returns>
  950. </member>
  951. <member name="M:System.Formats.Asn1.AsnReader.ReadEnumeratedValue``1(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  952. <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>
  953. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 10).</param>
  954. <typeparam name="TEnum">Destination enum type</typeparam>
  955. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  956. -or-
  957. the length encoding is not valid under the current encoding rules.
  958. -or-
  959. the contents are not valid under the current encoding rules.
  960. -or-
  961. the encoded value is too big to fit in a <typeparamref name="TEnum" /> value.</exception>
  962. <exception cref="T:System.ArgumentException">
  963. <typeparamref name="TEnum" /> is not an enum type.
  964. -or-
  965. <typeparamref name="TEnum" /> was declared with <see cref="T:System.FlagsAttribute" />.
  966. -or-
  967. <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>
  968. <returns>The Enumerated value converted to a <typeparamref name="TEnum" />.</returns>
  969. </member>
  970. <member name="M:System.Formats.Asn1.AsnReader.ReadGeneralizedTime(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  971. <summary>Reads the next value as a GeneralizedTime with a specified tag.</summary>
  972. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 24).</param>
  973. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  974. -or-
  975. the length encoding is not valid under the current encoding rules.
  976. -or-
  977. the contents are not valid under the current encoding rules.</exception>
  978. <exception cref="T:System.ArgumentException">
  979. <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>
  980. <returns>The decoded value.</returns>
  981. </member>
  982. <member name="M:System.Formats.Asn1.AsnReader.ReadInteger(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  983. <summary>Reads the next value as an Integer with a specified tag.</summary>
  984. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  985. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  986. -or-
  987. the length encoding is not valid under the current encoding rules.
  988. -or-
  989. the contents are not valid under the current encoding rules.</exception>
  990. <exception cref="T:System.ArgumentException">
  991. <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>
  992. <returns>The decoded value.</returns>
  993. </member>
  994. <member name="M:System.Formats.Asn1.AsnReader.ReadIntegerBytes(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  995. <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>
  996. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  997. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  998. -or-
  999. the length encoding is not valid under the current encoding rules.
  1000. -or-
  1001. the contents are not valid under the current encoding rules.</exception>
  1002. <exception cref="T:System.ArgumentException">
  1003. <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>
  1004. <returns>The bytes of the Integer value, in signed big-endian form.</returns>
  1005. </member>
  1006. <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitList(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1007. <summary>Reads the next value as a NamedBitList with a specified tag.</summary>
  1008. <param name="expectedTag">The tag to check for before reading.</param>
  1009. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1010. -or-
  1011. the length encoding is not valid under the current encoding rules.
  1012. -or-
  1013. the contents are not valid under the current encoding rules.</exception>
  1014. <exception cref="T:System.ArgumentException">
  1015. <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>
  1016. <returns>The bits from the encoded value.</returns>
  1017. </member>
  1018. <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitListValue(System.Type,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1019. <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>
  1020. <param name="flagsEnumType">Type object representing the destination type.</param>
  1021. <param name="expectedTag">The tag to check for before reading.</param>
  1022. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1023. -or-
  1024. the length encoding is not valid under the current encoding rules.
  1025. -or-
  1026. the contents are not valid under the current encoding rules.
  1027. -or-
  1028. the encoded value is too big to fit in a <paramref name="flagsEnumType" /> value.</exception>
  1029. <exception cref="T:System.ArgumentException">
  1030. <paramref name="flagsEnumType" /> is not an enum type.
  1031. -or-
  1032. <paramref name="flagsEnumType" /> was not declared with <see cref="T:System.FlagsAttribute" />
  1033. -or-
  1034. <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>
  1035. <exception cref="T:System.ArgumentNullException">
  1036. <paramref name="flagsEnumType" /> is <see langword="null" /></exception>
  1037. <returns>The NamedBitList value converted to a <paramref name="flagsEnumType" />.</returns>
  1038. </member>
  1039. <member name="M:System.Formats.Asn1.AsnReader.ReadNamedBitListValue``1(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1040. <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>
  1041. <param name="expectedTag">The tag to check for before reading.</param>
  1042. <typeparam name="TFlagsEnum">Destination enum type</typeparam>
  1043. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1044. -or-
  1045. the length encoding is not valid under the current encoding rules.
  1046. -or-
  1047. the contents are not valid under the current encoding rules.
  1048. -or-
  1049. the encoded value is too big to fit in a <typeparamref name="TFlagsEnum" /> value.</exception>
  1050. <exception cref="T:System.ArgumentException">
  1051. <typeparamref name="TFlagsEnum" /> is not an enum type.
  1052. -or-
  1053. <typeparamref name="TFlagsEnum" /> was not declared with <see cref="T:System.FlagsAttribute" />
  1054. -or-
  1055. <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>
  1056. <returns>The NamedBitList value converted to a <typeparamref name="TFlagsEnum" />.</returns>
  1057. </member>
  1058. <member name="M:System.Formats.Asn1.AsnReader.ReadNull(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1059. <summary>Reads the next value as a NULL with a specified tag.</summary>
  1060. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 5).</param>
  1061. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1062. -or-
  1063. the length encoding is not valid under the current encoding rules.
  1064. -or-
  1065. the contents are not valid under the current encoding rules.</exception>
  1066. <exception cref="T:System.ArgumentException">
  1067. <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>
  1068. </member>
  1069. <member name="M:System.Formats.Asn1.AsnReader.ReadObjectIdentifier(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1070. <summary>Reads the next value as an OBJECT IDENTIFIER with a specified tag, returning the value in a dotted decimal format string.</summary>
  1071. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 6).</param>
  1072. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1073. -or-
  1074. the length encoding is not valid under the current encoding rules.
  1075. -or-
  1076. the contents are not valid under the current encoding rules.</exception>
  1077. <exception cref="T:System.ArgumentException">
  1078. <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>
  1079. <returns>The object identifier value in a dotted decimal format string.</returns>
  1080. </member>
  1081. <member name="M:System.Formats.Asn1.AsnReader.ReadOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1082. <summary>Reads the next value as an OCTET STRING with tag UNIVERSAL 4, returning the value in a byte array.</summary>
  1083. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
  1084. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1085. -or-
  1086. the length encoding is not valid under the current encoding rules.
  1087. -or-
  1088. the contents are not valid under the current encoding rules.</exception>
  1089. <exception cref="T:System.ArgumentException">
  1090. <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>
  1091. <returns>A copy of the value in a newly allocated, precisely sized, array.</returns>
  1092. </member>
  1093. <member name="M:System.Formats.Asn1.AsnReader.ReadSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1094. <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>
  1095. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 16).</param>
  1096. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1097. -or-
  1098. the length encoding is not valid under the current encoding rules.
  1099. -or-
  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>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>
  1104. </member>
  1105. <member name="M:System.Formats.Asn1.AsnReader.ReadSetOf(System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1106. <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>
  1107. <param name="skipSortOrderValidation">
  1108. <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>
  1109. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
  1110. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1111. -or-
  1112. the length encoding is not valid under the current encoding rules.
  1113. -or-
  1114. the contents are not valid under the current encoding rules.</exception>
  1115. <exception cref="T:System.ArgumentException">
  1116. <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>
  1117. <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>
  1118. </member>
  1119. <member name="M:System.Formats.Asn1.AsnReader.ReadSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1120. <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>
  1121. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 17).</param>
  1122. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1123. -or-
  1124. the length encoding is not valid under the current encoding rules.
  1125. -or-
  1126. the contents are not valid under the current encoding rules.</exception>
  1127. <exception cref="T:System.ArgumentException">
  1128. <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>
  1129. <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>
  1130. </member>
  1131. <member name="M:System.Formats.Asn1.AsnReader.ReadUtcTime(System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1132. <summary>Reads the next value as a UTCTime with a specified tag.</summary>
  1133. <param name="twoDigitYearMax">The largest year to represent with this value.</param>
  1134. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 23).</param>
  1135. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1136. -or-
  1137. the length encoding is not valid under the current encoding rules.
  1138. -or-
  1139. the contents are not valid under the current encoding rules.</exception>
  1140. <exception cref="T:System.ArgumentException">
  1141. <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>
  1142. <returns>The decoded value.</returns>
  1143. </member>
  1144. <member name="M:System.Formats.Asn1.AsnReader.ReadUtcTime(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1145. <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>
  1146. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 23).</param>
  1147. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1148. -or-
  1149. the length encoding is not valid under the current encoding rules.
  1150. -or-
  1151. the contents are not valid under the current encoding rules.</exception>
  1152. <exception cref="T:System.ArgumentException">
  1153. <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>
  1154. <returns>The decoded value.</returns>
  1155. </member>
  1156. <member name="M:System.Formats.Asn1.AsnReader.ThrowIfNotEmpty">
  1157. <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>
  1158. </member>
  1159. <member name="M:System.Formats.Asn1.AsnReader.TryReadBitString(System.Span{System.Byte},System.Int32@,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1160. <summary>Reads the next value as a BIT STRING with a specified tag, copying the value into a provided destination buffer.</summary>
  1161. <param name="destination">The buffer in which to write.</param>
  1162. <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
  1163. <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
  1164. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
  1165. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1166. -or-
  1167. the length encoding is not valid under the current encoding rules.
  1168. -or-
  1169. the contents are not valid under the current encoding rules.</exception>
  1170. <exception cref="T:System.ArgumentException">
  1171. <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>
  1172. <returns>
  1173. <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>
  1174. </member>
  1175. <member name="M:System.Formats.Asn1.AsnReader.TryReadCharacterString(System.Span{System.Char},System.Formats.Asn1.UniversalTagNumber,System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1176. <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>
  1177. <param name="destination">The buffer in which to write.</param>
  1178. <param name="encodingType">One of the enumeration values representing the value type to process.</param>
  1179. <param name="charsWritten">On success, receives the number of chars written to <paramref name="destination" />.</param>
  1180. <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>
  1181. <exception cref="T:System.ArgumentOutOfRangeException">
  1182. <paramref name="encodingType" /> is not a known character string type.</exception>
  1183. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1184. -or-
  1185. the length encoding is not valid under the current encoding rules.
  1186. -or-
  1187. the contents are not valid under the current encoding rules.
  1188. -or-
  1189. the string did not successfully decode.</exception>
  1190. <exception cref="T:System.ArgumentException">
  1191. <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>
  1192. <returns>
  1193. <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>
  1194. </member>
  1195. <member name="M:System.Formats.Asn1.AsnReader.TryReadCharacterStringBytes(System.Span{System.Byte},System.Formats.Asn1.Asn1Tag,System.Int32@)">
  1196. <summary>Reads the next value as character string with the specified tag, copying the unprocessed bytes into a provided destination buffer.</summary>
  1197. <param name="destination">The buffer in which to write.</param>
  1198. <param name="expectedTag">The tag to check for before reading.</param>
  1199. <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
  1200. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1201. -or-
  1202. the length encoding is not valid under the current encoding rules.
  1203. -or-
  1204. the contents are not valid under the current encoding rules.</exception>
  1205. <exception cref="T:System.ArgumentException">
  1206. <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>
  1207. <returns>
  1208. <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>
  1209. </member>
  1210. <member name="M:System.Formats.Asn1.AsnReader.TryReadInt32(System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1211. <summary>Attempts to read the next value as an Integer with a specified tag, as a signed 32-bit value.</summary>
  1212. <param name="value">On success, receives the decoded value.</param>
  1213. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  1214. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1215. -or-
  1216. the length encoding is not valid under the current encoding rules.
  1217. -or-
  1218. the contents are not valid under the current encoding rules.</exception>
  1219. <exception cref="T:System.ArgumentException">
  1220. <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>
  1221. <returns>
  1222. <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>
  1223. </member>
  1224. <member name="M:System.Formats.Asn1.AsnReader.TryReadInt64(System.Int64@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1225. <summary>Attempts to read the next value as an Integer with a specified tag, as a signed 64-bit value.</summary>
  1226. <param name="value">On success, receives the decoded value.</param>
  1227. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  1228. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1229. -or-
  1230. the length encoding is not valid under the current encoding rules.
  1231. -or-
  1232. the contents are not valid under the current encoding rules.</exception>
  1233. <exception cref="T:System.ArgumentException">
  1234. <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>
  1235. <returns>
  1236. <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>
  1237. </member>
  1238. <member name="M:System.Formats.Asn1.AsnReader.TryReadOctetString(System.Span{System.Byte},System.Int32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1239. <summary>Reads the next value as an OCTET STRING with a specified tag, copying the value into a provided destination buffer.</summary>
  1240. <param name="destination">The buffer in which to write.</param>
  1241. <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
  1242. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 4).</param>
  1243. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1244. -or-
  1245. the length encoding is not valid under the current encoding rules.
  1246. -or-
  1247. the contents are not valid under the current encoding rules.</exception>
  1248. <exception cref="T:System.ArgumentException">
  1249. <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>
  1250. <returns>
  1251. <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>
  1252. </member>
  1253. <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveBitString(System.Int32@,System.ReadOnlyMemory{System.Byte}@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1254. <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>
  1255. <param name="unusedBitCount">On success, receives the number of bits in the last byte which were reported as "unused" by the writer.</param>
  1256. <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>
  1257. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 1).</param>
  1258. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1259. -or-
  1260. the length encoding is not valid under the current encoding rules.
  1261. -or-
  1262. the contents are not valid under the current encoding rules.</exception>
  1263. <exception cref="T:System.ArgumentException">
  1264. <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>
  1265. <returns>
  1266. <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>
  1267. </member>
  1268. <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveCharacterStringBytes(System.Formats.Asn1.Asn1Tag,System.ReadOnlyMemory{System.Byte}@)">
  1269. <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>
  1270. <param name="expectedTag">The tag to check for before reading.</param>
  1271. <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>
  1272. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1273. -or-
  1274. the length encoding is not valid under the current encoding rules.
  1275. -or-
  1276. the contents are not valid under the current encoding rules.</exception>
  1277. <exception cref="T:System.ArgumentException">
  1278. <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>
  1279. <returns>
  1280. <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>
  1281. </member>
  1282. <member name="M:System.Formats.Asn1.AsnReader.TryReadPrimitiveOctetString(System.ReadOnlyMemory{System.Byte}@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1283. <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>
  1284. <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>
  1285. <param name="expectedTag">The tag to check for before reading.</param>
  1286. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1287. -or-
  1288. the length encoding is not valid under the current encoding rules.
  1289. -or-
  1290. the contents are not valid under the current encoding rules.</exception>
  1291. <exception cref="T:System.ArgumentException">
  1292. <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>
  1293. <returns>
  1294. <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>
  1295. </member>
  1296. <member name="M:System.Formats.Asn1.AsnReader.TryReadUInt32(System.UInt32@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1297. <summary>Attempts to read the next value as an Integer with a specified tag, as an unsigned 32-bit value.</summary>
  1298. <param name="value">On success, receives the decoded value.</param>
  1299. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  1300. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1301. -or-
  1302. the length encoding is not valid under the current encoding rules.
  1303. -or-
  1304. the contents are not valid under the current encoding rules.</exception>
  1305. <exception cref="T:System.ArgumentException">
  1306. <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>
  1307. <returns>
  1308. <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>
  1309. </member>
  1310. <member name="M:System.Formats.Asn1.AsnReader.TryReadUInt64(System.UInt64@,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1311. <summary>Attempts to read the next value as an Integer with a specified tag, as an unsigned 64-bit value.</summary>
  1312. <param name="value">On success, receives the decoded value.</param>
  1313. <param name="expectedTag">The tag to check for before reading, or <see langword="null" /> for the default tag (Universal 2).</param>
  1314. <exception cref="T:System.Formats.Asn1.AsnContentException">the next value does not have the correct tag.
  1315. -or-
  1316. the length encoding is not valid under the current encoding rules.
  1317. -or-
  1318. the contents are not valid under the current encoding rules.</exception>
  1319. <exception cref="T:System.ArgumentException">
  1320. <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>
  1321. <returns>
  1322. <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>
  1323. </member>
  1324. <member name="P:System.Formats.Asn1.AsnReader.HasData">
  1325. <summary>Gets an indication of whether the reader has remaining data available to process.</summary>
  1326. <returns>
  1327. <see langword="true" /> if there is more data available for the reader to process; otherwise, <see langword="false" />.</returns>
  1328. </member>
  1329. <member name="P:System.Formats.Asn1.AsnReader.RuleSet">
  1330. <summary>Gets the encoding rules in use by this reader.</summary>
  1331. <returns>The encoding rules in use by this reader.</returns>
  1332. </member>
  1333. <member name="T:System.Formats.Asn1.AsnReaderOptions">
  1334. <summary>Specifies options that modify the behavior of an <see cref="T:System.Formats.Asn1.AsnReader" />.</summary>
  1335. </member>
  1336. <member name="P:System.Formats.Asn1.AsnReaderOptions.SkipSetSortOrderVerification">
  1337. <summary>Gets or sets a value that indicates whether the reader should bypass sort ordering on a Set or Set-Of value.</summary>
  1338. <returns>
  1339. <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" />.
  1340. The default is <see langword="false" />.</returns>
  1341. </member>
  1342. <member name="P:System.Formats.Asn1.AsnReaderOptions.UtcTimeTwoDigitYearMax">
  1343. <summary>Gets or sets the largest year to represent with a UtcTime value.</summary>
  1344. <returns>The largest year to represent with a UtcTime value. The default is 2049.</returns>
  1345. </member>
  1346. <member name="T:System.Formats.Asn1.AsnWriter">
  1347. <summary>A writer for BER-, CER-, and DER-encoded ASN.1 data.</summary>
  1348. </member>
  1349. <member name="M:System.Formats.Asn1.AsnWriter.#ctor(System.Formats.Asn1.AsnEncodingRules)">
  1350. <summary>Create a new <see cref="T:System.Formats.Asn1.AsnWriter" /> with a given set of encoding rules.</summary>
  1351. <param name="ruleSet">The encoding constraints for the writer.</param>
  1352. <exception cref="T:System.ArgumentOutOfRangeException">
  1353. <paramref name="ruleSet" /> is not defined.</exception>
  1354. </member>
  1355. <member name="M:System.Formats.Asn1.AsnWriter.CopyTo(System.Formats.Asn1.AsnWriter)">
  1356. <summary>Copy the value of this writer into another.</summary>
  1357. <param name="destination">The writer to receive the value.</param>
  1358. <exception cref="T:System.ArgumentNullException">
  1359. <paramref name="destination" /> is <see langword="null" />.</exception>
  1360. <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})" />.
  1361. -or-
  1362. This writer is empty.
  1363. -or-
  1364. This writer represents more than one top-level value.
  1365. -or-
  1366. This writer's value is encoded in a manner that is not compatible with the ruleset for the destination writer.</exception>
  1367. </member>
  1368. <member name="M:System.Formats.Asn1.AsnWriter.Encode">
  1369. <summary>Return a new array containing the encoded value.</summary>
  1370. <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>
  1371. <returns>A precisely-sized array containing the encoded value.</returns>
  1372. </member>
  1373. <member name="M:System.Formats.Asn1.AsnWriter.Encode(System.Span{System.Byte})">
  1374. <summary>Writes the encoded representation of the data to <paramref name="destination" />.</summary>
  1375. <param name="destination">The buffer in which to write.</param>
  1376. <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>
  1377. <returns>The number of bytes written to <paramref name="destination" />.</returns>
  1378. </member>
  1379. <member name="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.Formats.Asn1.AsnWriter)">
  1380. <summary>Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to <paramref name="other" />.</summary>
  1381. <param name="other">The instance to compare encoded values against.</param>
  1382. <exception cref="T:System.ArgumentNullException">
  1383. <paramref name="other" /> is <see langword="null" />.</exception>
  1384. <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>
  1385. <returns>
  1386. <see langword="true" /> if the pending encoded data is identical to <paramref name="other" />, <see langword="false" /> otherwise.</returns>
  1387. </member>
  1388. <member name="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.ReadOnlySpan{System.Byte})">
  1389. <summary>Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to <paramref name="other" />.</summary>
  1390. <param name="other">The encoded value to compare against.</param>
  1391. <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>
  1392. <returns>
  1393. <see langword="true" /> if the pending encoded data is identical to <paramref name="other" />, <see langword="false" /> otherwise.</returns>
  1394. </member>
  1395. <member name="M:System.Formats.Asn1.AsnWriter.GetEncodedLength">
  1396. <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>
  1397. <exception cref="T:System.InvalidOperationException">
  1398. <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>
  1399. <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>
  1400. </member>
  1401. <member name="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1402. <summary>Indicate that the open Octet String with the tag UNIVERSAL 4 is closed, returning the writer to the parent context.</summary>
  1403. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
  1404. <exception cref="T:System.ArgumentException">
  1405. <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>
  1406. <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within an Octet String with the specified tag.</exception>
  1407. </member>
  1408. <member name="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1409. <summary>Indicate that the open Sequence with the specified tag is closed, returning the writer to the parent context.</summary>
  1410. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
  1411. <exception cref="T:System.ArgumentException">
  1412. <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>
  1413. <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within a Sequence with the specified tag.</exception>
  1414. </member>
  1415. <member name="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1416. <summary>Indicate that the open Set-Of with the specified tag is closed, returning the writer to the parent context.</summary>
  1417. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
  1418. <exception cref="T:System.ArgumentException">
  1419. <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>
  1420. <exception cref="T:System.InvalidOperationException">the writer is not currently positioned within a Set-Of with the specified tag.</exception>
  1421. </member>
  1422. <member name="M:System.Formats.Asn1.AsnWriter.PushOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1423. <summary>Begin writing an Octet String value with a specified tag.</summary>
  1424. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
  1425. <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
  1426. </member>
  1427. <member name="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1428. <summary>Begin writing a Sequence with a specified tag.</summary>
  1429. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
  1430. <exception cref="T:System.ArgumentException">
  1431. <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>
  1432. <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
  1433. </member>
  1434. <member name="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1435. <summary>Begin writing a Set-Of with a specified tag.</summary>
  1436. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
  1437. <exception cref="T:System.ArgumentException">
  1438. <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>
  1439. <returns>A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.</returns>
  1440. </member>
  1441. <member name="M:System.Formats.Asn1.AsnWriter.Reset">
  1442. <summary>Reset the writer to have no data, without releasing resources.</summary>
  1443. </member>
  1444. <member name="M:System.Formats.Asn1.AsnWriter.TryEncode(System.Span{System.Byte},System.Int32@)">
  1445. <summary>Attempts to write the encoded representation of the data to <paramref name="destination" />.</summary>
  1446. <param name="destination">The buffer in which to write.</param>
  1447. <param name="bytesWritten">On success, receives the number of bytes written to <paramref name="destination" />.</param>
  1448. <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>
  1449. <returns>
  1450. <see langword="true" /> if the encode succeeded, <see langword="false" /> if <paramref name="destination" /> is too small.</returns>
  1451. </member>
  1452. <member name="M:System.Formats.Asn1.AsnWriter.WriteBitString(System.ReadOnlySpan{System.Byte},System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1453. <summary>Write a Bit String value with a specified tag.</summary>
  1454. <param name="value">The value to write.</param>
  1455. <param name="unusedBitCount">The number of trailing bits which are not semantic.</param>
  1456. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
  1457. <exception cref="T:System.ArgumentException">
  1458. <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.
  1459. -or-
  1460. <paramref name="value" /> has length 0 and <paramref name="unusedBitCount" /> is not 0
  1461. -or-
  1462. <paramref name="value" /> is not empty and any of the bits identified by <paramref name="unusedBitCount" /> is set.</exception>
  1463. <exception cref="T:System.ArgumentOutOfRangeException">
  1464. <paramref name="unusedBitCount" /> is not in the range [0,7].</exception>
  1465. </member>
  1466. <member name="M:System.Formats.Asn1.AsnWriter.WriteBoolean(System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1467. <summary>Write a Boolean value with a specified tag.</summary>
  1468. <param name="value">The value to write.</param>
  1469. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 1).</param>
  1470. <exception cref="T:System.ArgumentException">
  1471. <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>
  1472. </member>
  1473. <member name="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.ReadOnlySpan{System.Char},System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1474. <summary>Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.</summary>
  1475. <param name="encodingType">One of the enumeration values representing the encoding to use.</param>
  1476. <param name="str">The string to write.</param>
  1477. <param name="tag">The tag to write, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
  1478. <exception cref="T:System.ArgumentOutOfRangeException">
  1479. <paramref name="encodingType" /> is not a restricted character string encoding type.
  1480. -or-
  1481. <paramref name="encodingType" /> is a restricted character string encoding type that is not currently supported by this method.</exception>
  1482. <exception cref="T:System.ArgumentException">
  1483. <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>
  1484. </member>
  1485. <member name="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.String,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1486. <summary>Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.</summary>
  1487. <param name="encodingType">One of the enumeration values representing the encoding to use.</param>
  1488. <param name="value">The string to write.</param>
  1489. <param name="tag">The tag to write, or <see langword="null" /> for the universal tag that is appropriate to the requested encoding type.</param>
  1490. <exception cref="T:System.ArgumentNullException">
  1491. <paramref name="value" /> is <see langword="null" /></exception>
  1492. <exception cref="T:System.ArgumentOutOfRangeException">
  1493. <paramref name="encodingType" /> is not a restricted character string encoding type.
  1494. -or-
  1495. <paramref name="encodingType" /> is a restricted character string encoding type that is not currently supported by this method.</exception>
  1496. <exception cref="T:System.ArgumentException">
  1497. <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>
  1498. </member>
  1499. <member name="M:System.Formats.Asn1.AsnWriter.WriteEncodedValue(System.ReadOnlySpan{System.Byte})">
  1500. <summary>Write a single value which has already been encoded.</summary>
  1501. <param name="value">The value to write.</param>
  1502. <exception cref="T:System.ArgumentException">
  1503. <paramref name="value" /> could not be read under the current encoding rules.
  1504. -or-
  1505. <paramref name="value" /> has data beyond the end of the first value.</exception>
  1506. </member>
  1507. <member name="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1508. <summary>Write a non-[<see cref="T:System.FlagsAttribute" />] enum value as an Enumerated with tag UNIVERSAL 10.</summary>
  1509. <param name="value">The boxed enumeration value to write.</param>
  1510. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 10).</param>
  1511. <exception cref="T:System.ArgumentNullException">
  1512. <paramref name="value" /> is <see langword="null" />.</exception>
  1513. <exception cref="T:System.ArgumentException">
  1514. <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.
  1515. -or-
  1516. <paramref name="value" /> is not a boxed enum value.
  1517. -or-
  1518. the unboxed type of <paramref name="value" /> is declared [<see cref="T:System.FlagsAttribute" />].</exception>
  1519. </member>
  1520. <member name="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1521. <summary>Write a non-[<see cref="T:System.FlagsAttribute" />] enum value as an Enumerated with tag UNIVERSAL 10.</summary>
  1522. <param name="value">The boxed enumeration value to write.</param>
  1523. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 10).</param>
  1524. <typeparam name="TEnum">The non-[<see cref="T:System.FlagsAttribute" />] enumeration type to write.</typeparam>
  1525. <exception cref="T:System.ArgumentNullException">
  1526. <paramref name="value" /> is <see langword="null" />.</exception>
  1527. <exception cref="T:System.ArgumentException">
  1528. <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.
  1529. -or-
  1530. <typeparamref name="TEnum" /> is not an enum.
  1531. -or-
  1532. <typeparamref name="TEnum" /> is declared [<see cref="T:System.FlagsAttribute" />].</exception>
  1533. </member>
  1534. <member name="M:System.Formats.Asn1.AsnWriter.WriteGeneralizedTime(System.DateTimeOffset,System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1535. <summary>Write the provided <see cref="T:System.DateTimeOffset" /> as a GeneralizedTime with a specified UNIVERSAL 24, optionally excluding the fractional seconds.</summary>
  1536. <param name="value">The value to write.</param>
  1537. <param name="omitFractionalSeconds">
  1538. <see langword="true" /> to treat the fractional seconds in <paramref name="value" /> as 0 even if a non-zero value is present.</param>
  1539. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 24).</param>
  1540. <exception cref="T:System.ArgumentException">
  1541. <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>
  1542. </member>
  1543. <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.Int64,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1544. <summary>Write an Integer value with a specified tag.</summary>
  1545. <param name="value">The value to write.</param>
  1546. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
  1547. <exception cref="T:System.ArgumentException">
  1548. <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>
  1549. </member>
  1550. <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.Numerics.BigInteger,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1551. <summary>Write an Integer value with a specified tag.</summary>
  1552. <param name="value">The value to write.</param>
  1553. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
  1554. <exception cref="T:System.ArgumentException">
  1555. <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>
  1556. </member>
  1557. <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1558. <summary>Write an Integer value with a specified tag.</summary>
  1559. <param name="value">The integer value to write, in signed big-endian byte order.</param>
  1560. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
  1561. <exception cref="T:System.ArgumentException">
  1562. <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>
  1563. <exception cref="T:System.ArgumentException">the 9 most significant bits are all set.
  1564. -or-
  1565. the 9 most significant bits are all unset.</exception>
  1566. </member>
  1567. <member name="M:System.Formats.Asn1.AsnWriter.WriteInteger(System.UInt64,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1568. <summary>Write an Integer value with a specified tag.</summary>
  1569. <param name="value">The value to write.</param>
  1570. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
  1571. <exception cref="T:System.ArgumentException">
  1572. <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>
  1573. </member>
  1574. <member name="M:System.Formats.Asn1.AsnWriter.WriteIntegerUnsigned(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1575. <summary>Write an Integer value with a specified tag.</summary>
  1576. <param name="value">The integer value to write, in unsigned big-endian byte order.</param>
  1577. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 2).</param>
  1578. <exception cref="T:System.ArgumentException">
  1579. <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>
  1580. <exception cref="T:System.ArgumentException">the 9 most significant bits are all unset.</exception>
  1581. </member>
  1582. <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList(System.Collections.BitArray,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1583. <summary>Write a bit array value as a NamedBitList with a specified tag.</summary>
  1584. <param name="value">The bits to write</param>
  1585. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
  1586. <exception cref="T:System.ArgumentException">
  1587. <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>
  1588. <exception cref="T:System.ArgumentNullException">
  1589. <paramref name="value" /> is <see langword="null" />.</exception>
  1590. </member>
  1591. <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1592. <summary>Write a [<see cref="T:System.FlagsAttribute" />] enum value as a NamedBitList with a specified tag.</summary>
  1593. <param name="value">The boxed enumeration value to write</param>
  1594. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
  1595. <exception cref="T:System.ArgumentException">
  1596. <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.
  1597. -or-
  1598. <paramref name="value" /> is not a boxed enum value.
  1599. -or-
  1600. the unboxed type of <paramref name="value" /> is not declared [<see cref="T:System.FlagsAttribute" />].</exception>
  1601. <exception cref="T:System.ArgumentNullException">
  1602. <paramref name="value" /> is <see langword="null" />.</exception>
  1603. </member>
  1604. <member name="M:System.Formats.Asn1.AsnWriter.WriteNamedBitList``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1605. <summary>Write a [<see cref="T:System.FlagsAttribute" />] enum value as a NamedBitList with a specified tag.</summary>
  1606. <param name="value">The enumeration value to write</param>
  1607. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
  1608. <typeparam name="TEnum">The [<see cref="T:System.FlagsAttribute" />] enumeration type to write.</typeparam>
  1609. <exception cref="T:System.ArgumentException">
  1610. <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.
  1611. -or-
  1612. <typeparamref name="TEnum" /> is not an enum value.
  1613. -or-
  1614. <typeparamref name="TEnum" /> is not declared [<see cref="T:System.FlagsAttribute" />].</exception>
  1615. </member>
  1616. <member name="M:System.Formats.Asn1.AsnWriter.WriteNull(System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1617. <summary>Write NULL with a specified tag.</summary>
  1618. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 5).</param>
  1619. <exception cref="T:System.ArgumentException">
  1620. <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>
  1621. </member>
  1622. <member name="M:System.Formats.Asn1.AsnWriter.WriteObjectIdentifier(System.ReadOnlySpan{System.Char},System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1623. <summary>Write an Object Identifier with a specified tag.</summary>
  1624. <param name="oidValue">The object identifier to write.</param>
  1625. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 6).</param>
  1626. <exception cref="T:System.ArgumentException">
  1627. <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.
  1628. -or-
  1629. <paramref name="oidValue" /> is not a valid dotted decimal object identifier.</exception>
  1630. </member>
  1631. <member name="M:System.Formats.Asn1.AsnWriter.WriteObjectIdentifier(System.String,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1632. <summary>Write an Object Identifier with a specified tag.</summary>
  1633. <param name="oidValue">The object identifier to write.</param>
  1634. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 6).</param>
  1635. <exception cref="T:System.ArgumentException">
  1636. <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.
  1637. -or-
  1638. <paramref name="oidValue" /> is not a valid dotted decimal object identifier.</exception>
  1639. <exception cref="T:System.ArgumentNullException">
  1640. <paramref name="oidValue" /> is <see langword="null" />.</exception>
  1641. </member>
  1642. <member name="M:System.Formats.Asn1.AsnWriter.WriteOctetString(System.ReadOnlySpan{System.Byte},System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1643. <summary>Write an Octet String value with a specified tag.</summary>
  1644. <param name="value">The value to write.</param>
  1645. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
  1646. <exception cref="T:System.ArgumentException">
  1647. <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>
  1648. </member>
  1649. <member name="M:System.Formats.Asn1.AsnWriter.WriteUtcTime(System.DateTimeOffset,System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1650. <summary>Write the provided value as a UTCTime with a specified tag, provided the year is in the allowed range.</summary>
  1651. <param name="value">The value to write.</param>
  1652. <param name="twoDigitYearMax">The maximum valid year for <paramref name="value" />, after conversion to UTC.
  1653. For the X.509 Time.utcTime range of 1950-2049, pass <c>2049</c>.</param>
  1654. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 23).</param>
  1655. <exception cref="T:System.ArgumentException">
  1656. <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>
  1657. <exception cref="T:System.ArgumentOutOfRangeException">
  1658. <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>
  1659. </member>
  1660. <member name="M:System.Formats.Asn1.AsnWriter.WriteUtcTime(System.DateTimeOffset,System.Nullable{System.Formats.Asn1.Asn1Tag})">
  1661. <summary>Write the provided value as a UTCTime with a specified tag, accepting the two-digit year as valid in context.</summary>
  1662. <param name="value">The value to write.</param>
  1663. <param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 23).</param>
  1664. <exception cref="T:System.ArgumentException">
  1665. <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>
  1666. </member>
  1667. <member name="P:System.Formats.Asn1.AsnWriter.RuleSet">
  1668. <summary>Gets the encoding rules in use by this writer.</summary>
  1669. <returns>The encoding rules in use by this writer.</returns>
  1670. </member>
  1671. <member name="T:System.Formats.Asn1.AsnWriter.Scope">
  1672. <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>
  1673. </member>
  1674. <member name="M:System.Formats.Asn1.AsnWriter.Scope.Dispose">
  1675. <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
  1676. </member>
  1677. <member name="T:System.Formats.Asn1.TagClass">
  1678. <summary>The tag class for a particular ASN.1 tag.</summary>
  1679. </member>
  1680. <member name="F:System.Formats.Asn1.TagClass.Application">
  1681. <summary>The Application tag class</summary>
  1682. </member>
  1683. <member name="F:System.Formats.Asn1.TagClass.ContextSpecific">
  1684. <summary>The Context-Specific tag class</summary>
  1685. </member>
  1686. <member name="F:System.Formats.Asn1.TagClass.Private">
  1687. <summary>The Private tag class</summary>
  1688. </member>
  1689. <member name="F:System.Formats.Asn1.TagClass.Universal">
  1690. <summary>The Universal tag class</summary>
  1691. </member>
  1692. <member name="T:System.Formats.Asn1.UniversalTagNumber">
  1693. <summary>Tag assignments for the UNIVERSAL class in ITU-T X.680.</summary>
  1694. </member>
  1695. <member name="F:System.Formats.Asn1.UniversalTagNumber.BitString">
  1696. <summary>The universal class tag value for Bit String.</summary>
  1697. </member>
  1698. <member name="F:System.Formats.Asn1.UniversalTagNumber.BMPString">
  1699. <summary>The universal class tag value for BMPString.</summary>
  1700. </member>
  1701. <member name="F:System.Formats.Asn1.UniversalTagNumber.Boolean">
  1702. <summary>The universal class tag value for Boolean.</summary>
  1703. </member>
  1704. <member name="F:System.Formats.Asn1.UniversalTagNumber.Date">
  1705. <summary>The universal class tag value for Date.</summary>
  1706. </member>
  1707. <member name="F:System.Formats.Asn1.UniversalTagNumber.DateTime">
  1708. <summary>The universal class tag value for Date-Time.</summary>
  1709. </member>
  1710. <member name="F:System.Formats.Asn1.UniversalTagNumber.Duration">
  1711. <summary>The universal class tag value for Duration.</summary>
  1712. </member>
  1713. <member name="F:System.Formats.Asn1.UniversalTagNumber.Embedded">
  1714. <summary>The universal class tag value for Embedded-PDV.</summary>
  1715. </member>
  1716. <member name="F:System.Formats.Asn1.UniversalTagNumber.EndOfContents">
  1717. <summary>The reserved identifier for the End-of-Contents marker in an indefinite length encoding.</summary>
  1718. </member>
  1719. <member name="F:System.Formats.Asn1.UniversalTagNumber.Enumerated">
  1720. <summary>The universal class tag value for Enumerated.</summary>
  1721. </member>
  1722. <member name="F:System.Formats.Asn1.UniversalTagNumber.External">
  1723. <summary>The universal class tag value for External.</summary>
  1724. </member>
  1725. <member name="F:System.Formats.Asn1.UniversalTagNumber.GeneralizedTime">
  1726. <summary>The universal class tag value for GeneralizedTime.</summary>
  1727. </member>
  1728. <member name="F:System.Formats.Asn1.UniversalTagNumber.GeneralString">
  1729. <summary>The universal class tag value for GeneralString.</summary>
  1730. </member>
  1731. <member name="F:System.Formats.Asn1.UniversalTagNumber.GraphicString">
  1732. <summary>The universal class tag value for GraphicString.</summary>
  1733. </member>
  1734. <member name="F:System.Formats.Asn1.UniversalTagNumber.IA5String">
  1735. <summary>The universal class tag value for IA5String.</summary>
  1736. </member>
  1737. <member name="F:System.Formats.Asn1.UniversalTagNumber.InstanceOf">
  1738. <summary>The universal class tag value for Instance-Of.</summary>
  1739. </member>
  1740. <member name="F:System.Formats.Asn1.UniversalTagNumber.Integer">
  1741. <summary>The universal class tag value for Integer.</summary>
  1742. </member>
  1743. <member name="F:System.Formats.Asn1.UniversalTagNumber.ISO646String">
  1744. <summary>The universal class tag value for ISO646String (VisibleString).</summary>
  1745. </member>
  1746. <member name="F:System.Formats.Asn1.UniversalTagNumber.Null">
  1747. <summary>The universal class tag value for Null.</summary>
  1748. </member>
  1749. <member name="F:System.Formats.Asn1.UniversalTagNumber.NumericString">
  1750. <summary>The universal class tag value for NumericString.</summary>
  1751. </member>
  1752. <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectDescriptor">
  1753. <summary>The universal class tag value for Object Descriptor.</summary>
  1754. </member>
  1755. <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectIdentifier">
  1756. <summary>The universal class tag value for Object Identifier.</summary>
  1757. </member>
  1758. <member name="F:System.Formats.Asn1.UniversalTagNumber.ObjectIdentifierIRI">
  1759. <summary>The universal class tag value for Object Identifier Internationalized Resource Identifier (IRI).</summary>
  1760. </member>
  1761. <member name="F:System.Formats.Asn1.UniversalTagNumber.OctetString">
  1762. <summary>The universal class tag value for Octet String.</summary>
  1763. </member>
  1764. <member name="F:System.Formats.Asn1.UniversalTagNumber.PrintableString">
  1765. <summary>The universal class tag value for PrintableString.</summary>
  1766. </member>
  1767. <member name="F:System.Formats.Asn1.UniversalTagNumber.Real">
  1768. <summary>The universal class tag value for Real.</summary>
  1769. </member>
  1770. <member name="F:System.Formats.Asn1.UniversalTagNumber.RelativeObjectIdentifier">
  1771. <summary>The universal class tag value for Relative Object Identifier.</summary>
  1772. </member>
  1773. <member name="F:System.Formats.Asn1.UniversalTagNumber.RelativeObjectIdentifierIRI">
  1774. <summary>The universal class tag value for Relative Object Identifier Internationalized Resource Identifier (IRI).</summary>
  1775. </member>
  1776. <member name="F:System.Formats.Asn1.UniversalTagNumber.Sequence">
  1777. <summary>The universal class tag value for Sequence.</summary>
  1778. </member>
  1779. <member name="F:System.Formats.Asn1.UniversalTagNumber.SequenceOf">
  1780. <summary>The universal class tag value for Sequence-Of.</summary>
  1781. </member>
  1782. <member name="F:System.Formats.Asn1.UniversalTagNumber.Set">
  1783. <summary>The universal class tag value for Set.</summary>
  1784. </member>
  1785. <member name="F:System.Formats.Asn1.UniversalTagNumber.SetOf">
  1786. <summary>The universal class tag value for Set-Of.</summary>
  1787. </member>
  1788. <member name="F:System.Formats.Asn1.UniversalTagNumber.T61String">
  1789. <summary>The universal class tag value for T61String (TeletexString).</summary>
  1790. </member>
  1791. <member name="F:System.Formats.Asn1.UniversalTagNumber.TeletexString">
  1792. <summary>The universal class tag value for TeletexString (T61String).</summary>
  1793. </member>
  1794. <member name="F:System.Formats.Asn1.UniversalTagNumber.Time">
  1795. <summary>The universal class tag value for Time.</summary>
  1796. </member>
  1797. <member name="F:System.Formats.Asn1.UniversalTagNumber.TimeOfDay">
  1798. <summary>The universal class tag value for Time-Of-Day.</summary>
  1799. </member>
  1800. <member name="F:System.Formats.Asn1.UniversalTagNumber.UniversalString">
  1801. <summary>The universal class tag value for UniversalString.</summary>
  1802. </member>
  1803. <member name="F:System.Formats.Asn1.UniversalTagNumber.UnrestrictedCharacterString">
  1804. <summary>The universal class tag value for an unrestricted character string.</summary>
  1805. </member>
  1806. <member name="F:System.Formats.Asn1.UniversalTagNumber.UtcTime">
  1807. <summary>The universal class tag value for UTCTime.</summary>
  1808. </member>
  1809. <member name="F:System.Formats.Asn1.UniversalTagNumber.UTF8String">
  1810. <summary>The universal class tag value for UTF8String.</summary>
  1811. </member>
  1812. <member name="F:System.Formats.Asn1.UniversalTagNumber.VideotexString">
  1813. <summary>The universal class tag value for VideotexString.</summary>
  1814. </member>
  1815. <member name="F:System.Formats.Asn1.UniversalTagNumber.VisibleString">
  1816. <summary>The universal class tag value for VisibleString (ISO646String).</summary>
  1817. </member>
  1818. </members>
  1819. </doc>