System.Formats.Asn1.xml 158 KB

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