-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathAsnWriter.xml
1670 lines (1632 loc) · 101 KB
/
AsnWriter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="AsnWriter" FullName="System.Formats.Asn1.AsnWriter">
<TypeSignature Language="C#" Value="public sealed class AsnWriter" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AsnWriter extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Formats.Asn1.AsnWriter" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class AsnWriter" />
<TypeSignature Language="F#" Value="type AsnWriter = class" />
<TypeSignature Language="C++ CLI" Value="public ref class AsnWriter sealed" />
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
A writer for BER-, CER-, and DER-encoded ASN.1 data.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public AsnWriter (System.Formats.Asn1.AsnEncodingRules ruleSet);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Formats.Asn1.AsnEncodingRules ruleSet) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.#ctor(System.Formats.Asn1.AsnEncodingRules)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (ruleSet As AsnEncodingRules)" />
<MemberSignature Language="F#" Value="new System.Formats.Asn1.AsnWriter : System.Formats.Asn1.AsnEncodingRules -> System.Formats.Asn1.AsnWriter" Usage="new System.Formats.Asn1.AsnWriter ruleSet" />
<MemberSignature Language="C++ CLI" Value="public:
 AsnWriter(System::Formats::Asn1::AsnEncodingRules ruleSet);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="ruleSet" Type="System.Formats.Asn1.AsnEncodingRules" />
</Parameters>
<Docs>
<param name="ruleSet">The encoding constraints for the writer.</param>
<summary>
Create a new <see cref="T:System.Formats.Asn1.AsnWriter" /> with a given set of encoding rules.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="ruleSet" /> is not defined.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public AsnWriter (System.Formats.Asn1.AsnEncodingRules ruleSet, int initialCapacity);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Formats.Asn1.AsnEncodingRules ruleSet, int32 initialCapacity) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.#ctor(System.Formats.Asn1.AsnEncodingRules,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (ruleSet As AsnEncodingRules, initialCapacity As Integer)" />
<MemberSignature Language="F#" Value="new System.Formats.Asn1.AsnWriter : System.Formats.Asn1.AsnEncodingRules * int -> System.Formats.Asn1.AsnWriter" Usage="new System.Formats.Asn1.AsnWriter (ruleSet, initialCapacity)" />
<MemberSignature Language="C++ CLI" Value="public:
 AsnWriter(System::Formats::Asn1::AsnEncodingRules ruleSet, int initialCapacity);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="ruleSet" Type="System.Formats.Asn1.AsnEncodingRules" Index="0" FrameworkAlternate="net-7.0;net-8.0;net-9.0;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-2.0;net-6.0;net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-4.7.1-pp;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8-pp;netstandard-2.0-pp;netframework-4.8.1-pp" />
<Parameter Name="initialCapacity" Type="System.Int32" Index="1" FrameworkAlternate="net-7.0;net-8.0;net-9.0;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-2.0;net-6.0;net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-4.7.1-pp;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8-pp;netstandard-2.0-pp;netframework-4.8.1-pp" />
</Parameters>
<Docs>
<param name="ruleSet">The encoding constraints for the writer.</param>
<param name="initialCapacity">The minimum capacity with which to initialize the underlying buffer.</param>
<summary>
Initializes a new instance of <see cref="T:System.Formats.Asn1.AsnWriter" /> with a given set of encoding rules and an initial capacity.
</summary>
<remarks>
Specifying <paramref name="initialCapacity" /> with a value of zero behaves as if no initial capacity were
specified.
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<para>
<paramref name="ruleSet" /> is not defined.</para>
<para> -or- </para>
<para>
<paramref name="initialCapacity" /> is a negative number.</para>
</exception>
</Docs>
</Member>
<Member MemberName="CopyTo">
<MemberSignature Language="C#" Value="public void CopyTo (System.Formats.Asn1.AsnWriter destination);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CopyTo(class System.Formats.Asn1.AsnWriter destination) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.CopyTo(System.Formats.Asn1.AsnWriter)" />
<MemberSignature Language="VB.NET" Value="Public Sub CopyTo (destination As AsnWriter)" />
<MemberSignature Language="F#" Value="member this.CopyTo : System.Formats.Asn1.AsnWriter -> unit" Usage="asnWriter.CopyTo destination" />
<MemberSignature Language="C++ CLI" Value="public:
 void CopyTo(System::Formats::Asn1::AsnWriter ^ destination);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="destination" Type="System.Formats.Asn1.AsnWriter" />
</Parameters>
<Docs>
<param name="destination">The writer to receive the value.</param>
<summary>
Copy the value of this writer into another.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="destination" /> is <see langword="null" />.
</exception>
<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})" />.
-or-
This writer is empty.
-or-
This writer represents more than one top-level value.
-or-
This writer's value is encoded in a manner that is not compatible with the
ruleset for the destination writer.
</exception>
</Docs>
</Member>
<Member MemberName="Encode">
<MemberSignature Language="C#" Value="public byte[] Encode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance unsigned int8[] Encode() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.Encode" />
<MemberSignature Language="VB.NET" Value="Public Function Encode () As Byte()" />
<MemberSignature Language="F#" Value="member this.Encode : unit -> byte[]" Usage="asnWriter.Encode " />
<MemberSignature Language="C++ CLI" Value="public:
 cli::array <System::Byte> ^ Encode();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte[]</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Return a new array containing the encoded value.
</summary>
<returns>
A precisely-sized array containing the encoded value.
</returns>
<remarks>To be added.</remarks>
<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>
</Docs>
</Member>
<Member MemberName="Encode">
<MemberSignature Language="C#" Value="public int Encode (Span<byte> destination);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 Encode(valuetype System.Span`1<unsigned int8> destination) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.Encode(System.Span{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Function Encode (destination As Span(Of Byte)) As Integer" />
<MemberSignature Language="F#" Value="member this.Encode : Span<byte> -> int" Usage="asnWriter.Encode destination" />
<MemberSignature Language="C++ CLI" Value="public:
 int Encode(Span<System::Byte> destination);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="destination" Type="System.Span<System.Byte>" />
</Parameters>
<Docs>
<param name="destination">The buffer in which to write.</param>
<summary>
Writes the encoded representation of the data to <paramref name="destination" />.
</summary>
<returns>
The number of bytes written to <paramref name="destination" />.
</returns>
<remarks>To be added.</remarks>
<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>
</Docs>
</Member>
<Member MemberName="EncodedValueEquals">
<MemberSignature Language="C#" Value="public bool EncodedValueEquals (System.Formats.Asn1.AsnWriter other);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool EncodedValueEquals(class System.Formats.Asn1.AsnWriter other) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.Formats.Asn1.AsnWriter)" />
<MemberSignature Language="VB.NET" Value="Public Function EncodedValueEquals (other As AsnWriter) As Boolean" />
<MemberSignature Language="F#" Value="member this.EncodedValueEquals : System.Formats.Asn1.AsnWriter -> bool" Usage="asnWriter.EncodedValueEquals other" />
<MemberSignature Language="C++ CLI" Value="public:
 bool EncodedValueEquals(System::Formats::Asn1::AsnWriter ^ other);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="other" Type="System.Formats.Asn1.AsnWriter" />
</Parameters>
<Docs>
<param name="other">The instance to compare encoded values against.</param>
<summary>
Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to
<paramref name="other" />.
</summary>
<returns>
<see langword="true" /> if the pending encoded data is identical to <paramref name="other" />,
<see langword="false" /> otherwise.
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="other" /> is <see langword="null" />.
</exception>
<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>
</Docs>
</Member>
<Member MemberName="EncodedValueEquals">
<MemberSignature Language="C#" Value="public bool EncodedValueEquals (ReadOnlySpan<byte> other);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool EncodedValueEquals(valuetype System.ReadOnlySpan`1<unsigned int8> other) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.EncodedValueEquals(System.ReadOnlySpan{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Function EncodedValueEquals (other As ReadOnlySpan(Of Byte)) As Boolean" />
<MemberSignature Language="F#" Value="member this.EncodedValueEquals : ReadOnlySpan<byte> -> bool" Usage="asnWriter.EncodedValueEquals other" />
<MemberSignature Language="C++ CLI" Value="public:
 bool EncodedValueEquals(ReadOnlySpan<System::Byte> other);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="other" Type="System.ReadOnlySpan<System.Byte>" />
</Parameters>
<Docs>
<param name="other">The encoded value to compare against.</param>
<summary>
Determines if <see cref="M:System.Formats.Asn1.AsnWriter.Encode" /> would produce an output identical to
<paramref name="other" />.
</summary>
<returns>
<see langword="true" /> if the pending encoded data is identical to <paramref name="other" />,
<see langword="false" /> otherwise.
</returns>
<remarks>To be added.</remarks>
<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>
</Docs>
</Member>
<Member MemberName="GetEncodedLength">
<MemberSignature Language="C#" Value="public int GetEncodedLength ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 GetEncodedLength() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.GetEncodedLength" />
<MemberSignature Language="VB.NET" Value="Public Function GetEncodedLength () As Integer" />
<MemberSignature Language="F#" Value="member this.GetEncodedLength : unit -> int" Usage="asnWriter.GetEncodedLength " />
<MemberSignature Language="C++ CLI" Value="public:
 int GetEncodedLength();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<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>
<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>
<remarks>To be added.</remarks>
<exception cref="T:System.InvalidOperationException">
<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>
</Docs>
</Member>
<Member MemberName="PopOctetString">
<MemberSignature Language="C#" Value="public void PopOctetString (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PopOctetString(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub PopOctetString (Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.PopOctetString : Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.PopOctetString tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
<summary>
Indicate that the open Octet String with the tag UNIVERSAL 4 is closed,
returning the writer to the parent context.
</summary>
<remarks>
In <see cref="F:System.Formats.Asn1.AsnEncodingRules.BER" /> and <see cref="F:System.Formats.Asn1.AsnEncodingRules.DER" /> modes,
the encoded contents will remain in a single primitive Octet String.
In <see cref="F:System.Formats.Asn1.AsnEncodingRules.CER" /> mode, the contents will be broken up into
multiple segments, when required.
</remarks>
<exception cref="T:System.ArgumentException">
<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>
<exception cref="T:System.InvalidOperationException">
the writer is not currently positioned within an Octet String with the specified tag.
</exception>
</Docs>
</Member>
<Member MemberName="PopSequence">
<MemberSignature Language="C#" Value="public void PopSequence (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PopSequence(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub PopSequence (Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.PopSequence : Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.PopSequence tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
<summary>
Indicate that the open Sequence with the specified tag is closed,
returning the writer to the parent context.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<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>
<exception cref="T:System.InvalidOperationException">
the writer is not currently positioned within a Sequence with the specified tag.
</exception>
<altmember cref="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="PopSetOf">
<MemberSignature Language="C#" Value="public void PopSetOf (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void PopSetOf(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub PopSetOf (Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.PopSetOf : Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.PopSetOf tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
<summary>
Indicate that the open Set-Of with the specified tag is closed,
returning the writer to the parent context.
</summary>
<remarks>
In <see cref="F:System.Formats.Asn1.AsnEncodingRules.CER" /> and <see cref="F:System.Formats.Asn1.AsnEncodingRules.DER" /> modes,
the writer will sort the Set-Of elements when the tag is closed.
</remarks>
<exception cref="T:System.ArgumentException">
<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>
<exception cref="T:System.InvalidOperationException">
the writer is not currently positioned within a Set-Of with the specified tag.
</exception>
<altmember cref="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="PushOctetString">
<MemberSignature Language="C#" Value="public System.Formats.Asn1.AsnWriter.Scope PushOctetString (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Formats.Asn1.AsnWriter/Scope PushOctetString(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PushOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Function PushOctetString (Optional tag As Nullable(Of Asn1Tag) = Nothing) As AsnWriter.Scope" />
<MemberSignature Language="F#" Value="member this.PushOctetString : Nullable<System.Formats.Asn1.Asn1Tag> -> System.Formats.Asn1.AsnWriter.Scope" Usage="asnWriter.PushOctetString tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Formats.Asn1.AsnWriter+Scope</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 4).</param>
<summary>
Begin writing an Octet String value with a specified tag.
</summary>
<returns>
A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.
</returns>
<remarks>
This method is just an accelerator for writing an Octet String value where the
contents are also ASN.1 data encoded under the same encoding system.
When <see cref="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" /> is called the entire nested contents are
normalized as a single Octet String value, encoded correctly for the current encoding
rules.
This method does not necessarily create a Constructed encoding, and it is not invalid to
write values other than Octet String inside this Push/Pop.
</remarks>
<altmember cref="M:System.Formats.Asn1.AsnWriter.PopOctetString(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="PushSequence">
<MemberSignature Language="C#" Value="public System.Formats.Asn1.AsnWriter.Scope PushSequence (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Formats.Asn1.AsnWriter/Scope PushSequence(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PushSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Function PushSequence (Optional tag As Nullable(Of Asn1Tag) = Nothing) As AsnWriter.Scope" />
<MemberSignature Language="F#" Value="member this.PushSequence : Nullable<System.Formats.Asn1.Asn1Tag> -> System.Formats.Asn1.AsnWriter.Scope" Usage="asnWriter.PushSequence tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Formats.Asn1.AsnWriter+Scope</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 16).</param>
<summary>
Begin writing a Sequence with a specified tag.
</summary>
<returns>
A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<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>
<altmember cref="M:System.Formats.Asn1.AsnWriter.PopSequence(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="PushSetOf">
<MemberSignature Language="C#" Value="public System.Formats.Asn1.AsnWriter.Scope PushSetOf (System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Formats.Asn1.AsnWriter/Scope PushSetOf(valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.PushSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Function PushSetOf (Optional tag As Nullable(Of Asn1Tag) = Nothing) As AsnWriter.Scope" />
<MemberSignature Language="F#" Value="member this.PushSetOf : Nullable<System.Formats.Asn1.Asn1Tag> -> System.Formats.Asn1.AsnWriter.Scope" Usage="asnWriter.PushSetOf tag" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Formats.Asn1.AsnWriter+Scope</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 17).</param>
<summary>
Begin writing a Set-Of with a specified tag.
</summary>
<returns>
A disposable value which will automatically call <see cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />.
</returns>
<remarks>
In <see cref="F:System.Formats.Asn1.AsnEncodingRules.CER" /> and <see cref="F:System.Formats.Asn1.AsnEncodingRules.DER" /> modes,
the writer will sort the Set-Of elements when the tag is closed.
</remarks>
<exception cref="T:System.ArgumentException">
<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>
<altmember cref="M:System.Formats.Asn1.AsnWriter.PopSetOf(System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="Reset">
<MemberSignature Language="C#" Value="public void Reset ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Reset() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.Reset" />
<MemberSignature Language="VB.NET" Value="Public Sub Reset ()" />
<MemberSignature Language="F#" Value="member this.Reset : unit -> unit" Usage="asnWriter.Reset " />
<MemberSignature Language="C++ CLI" Value="public:
 void Reset();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Reset the writer to have no data, without releasing resources.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RuleSet">
<MemberSignature Language="C#" Value="public System.Formats.Asn1.AsnEncodingRules RuleSet { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Formats.Asn1.AsnEncodingRules RuleSet" />
<MemberSignature Language="DocId" Value="P:System.Formats.Asn1.AsnWriter.RuleSet" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property RuleSet As AsnEncodingRules" />
<MemberSignature Language="F#" Value="member this.RuleSet : System.Formats.Asn1.AsnEncodingRules" Usage="System.Formats.Asn1.AsnWriter.RuleSet" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Formats::Asn1::AsnEncodingRules RuleSet { System::Formats::Asn1::AsnEncodingRules get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Formats.Asn1.AsnEncodingRules</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the encoding rules in use by this writer.
</summary>
<value>
The encoding rules in use by this writer.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TryEncode">
<MemberSignature Language="C#" Value="public bool TryEncode (Span<byte> destination, out int bytesWritten);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool TryEncode(valuetype System.Span`1<unsigned int8> destination, [out] int32& bytesWritten) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.TryEncode(System.Span{System.Byte},System.Int32@)" />
<MemberSignature Language="VB.NET" Value="Public Function TryEncode (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean" />
<MemberSignature Language="F#" Value="member this.TryEncode : Span<byte> * int -> bool" Usage="asnWriter.TryEncode (destination, bytesWritten)" />
<MemberSignature Language="C++ CLI" Value="public:
 bool TryEncode(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="destination" Type="System.Span<System.Byte>" />
<Parameter Name="bytesWritten" Type="System.Int32" RefType="out" />
</Parameters>
<Docs>
<param name="destination">The buffer in which to write.</param>
<param name="bytesWritten">
On success, receives the number of bytes written to <paramref name="destination" />.
</param>
<summary>
Attempts to write the encoded representation of the data to <paramref name="destination" />.
</summary>
<returns>
<see langword="true" /> if the encode succeeded,
<see langword="false" /> if <paramref name="destination" /> is too small.
</returns>
<remarks>To be added.</remarks>
<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>
</Docs>
</Member>
<Member MemberName="WriteBitString">
<MemberSignature Language="C#" Value="public void WriteBitString (ReadOnlySpan<byte> value, int unusedBitCount = 0, System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteBitString(valuetype System.ReadOnlySpan`1<unsigned int8> value, int32 unusedBitCount, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteBitString(System.ReadOnlySpan{System.Byte},System.Int32,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteBitString (value As ReadOnlySpan(Of Byte), Optional unusedBitCount As Integer = 0, Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteBitString : ReadOnlySpan<byte> * int * Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.WriteBitString (value, unusedBitCount, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.ReadOnlySpan<System.Byte>" />
<Parameter Name="unusedBitCount" Type="System.Int32" />
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="value">The value to write.</param>
<param name="unusedBitCount">
The number of trailing bits which are not semantic.
</param>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 3).</param>
<summary>
Write a Bit String value with a specified tag.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<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.
-or-
<paramref name="value" /> has length 0 and <paramref name="unusedBitCount" /> is not 0
-or-
<paramref name="value" /> is not empty and any of the bits identified by
<paramref name="unusedBitCount" /> is set.
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="unusedBitCount" /> is not in the range [0,7].
</exception>
</Docs>
</Member>
<Member MemberName="WriteBoolean">
<MemberSignature Language="C#" Value="public void WriteBoolean (bool value, System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteBoolean(bool value, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteBoolean(System.Boolean,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteBoolean (value As Boolean, Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteBoolean : bool * Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.WriteBoolean (value, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Boolean" />
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="value">The value to write.</param>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 1).</param>
<summary>
Write a Boolean value with a specified tag.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<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>
</Docs>
</Member>
<Member MemberName="WriteCharacterString">
<MemberSignature Language="C#" Value="public void WriteCharacterString (System.Formats.Asn1.UniversalTagNumber encodingType, ReadOnlySpan<char> str, System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteCharacterString(valuetype System.Formats.Asn1.UniversalTagNumber encodingType, valuetype System.ReadOnlySpan`1<char> str, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.ReadOnlySpan{System.Char},System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteCharacterString (encodingType As UniversalTagNumber, str As ReadOnlySpan(Of Char), Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteCharacterString : System.Formats.Asn1.UniversalTagNumber * ReadOnlySpan<char> * Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.WriteCharacterString (encodingType, str, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="encodingType" Type="System.Formats.Asn1.UniversalTagNumber" />
<Parameter Name="str" Type="System.ReadOnlySpan<System.Char>" />
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="encodingType">
One of the enumeration values representing the encoding to use.
</param>
<param name="str">The string to write.</param>
<param name="tag">
The tag to write, or <see langword="null" /> for the universal tag that is appropriate to
the requested encoding type.
</param>
<summary>
Write the provided string using the specified encoding type using the specified
tag corresponding to the encoding type.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="encodingType" /> is not a restricted character string encoding type.
-or-
<paramref name="encodingType" /> is a restricted character string encoding type that is not
currently supported by this method.
</exception>
<exception cref="T:System.ArgumentException">
<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>
</Docs>
</Member>
<Member MemberName="WriteCharacterString">
<MemberSignature Language="C#" Value="public void WriteCharacterString (System.Formats.Asn1.UniversalTagNumber encodingType, string value, System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteCharacterString(valuetype System.Formats.Asn1.UniversalTagNumber encodingType, string value, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteCharacterString(System.Formats.Asn1.UniversalTagNumber,System.String,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteCharacterString (encodingType As UniversalTagNumber, value As String, Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteCharacterString : System.Formats.Asn1.UniversalTagNumber * string * Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.WriteCharacterString (encodingType, value, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="encodingType" Type="System.Formats.Asn1.UniversalTagNumber" />
<Parameter Name="value" Type="System.String" />
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="encodingType">
One of the enumeration values representing the encoding to use.
</param>
<param name="value">The string to write.</param>
<param name="tag">
The tag to write, or <see langword="null" /> for the universal tag that is appropriate to
the requested encoding type.
</param>
<summary>
Write the provided string using the specified encoding type using the specified
tag corresponding to the encoding type.
</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="value" /> is <see langword="null" /></exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="encodingType" /> is not a restricted character string encoding type.
-or-
<paramref name="encodingType" /> is a restricted character string encoding type that is not
currently supported by this method.
</exception>
<exception cref="T:System.ArgumentException">
<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>
</Docs>
</Member>
<Member MemberName="WriteEncodedValue">
<MemberSignature Language="C#" Value="public void WriteEncodedValue (ReadOnlySpan<byte> value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteEncodedValue(valuetype System.ReadOnlySpan`1<unsigned int8> value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteEncodedValue(System.ReadOnlySpan{System.Byte})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteEncodedValue (value As ReadOnlySpan(Of Byte))" />
<MemberSignature Language="F#" Value="member this.WriteEncodedValue : ReadOnlySpan<byte> -> unit" Usage="asnWriter.WriteEncodedValue value" />
<MemberSignature Language="C++ CLI" Value="public:
 void WriteEncodedValue(ReadOnlySpan<System::Byte> value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.ReadOnlySpan<System.Byte>" />
</Parameters>
<Docs>
<param name="value">The value to write.</param>
<summary>
Write a single value which has already been encoded.
</summary>
<remarks>
This method only checks that the tag and length are encoded according to the current ruleset,
and that the end of the value is the end of the input. The contents are not evaluated for
semantic meaning.
</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="value" /> could not be read under the current encoding rules.
-or-
<paramref name="value" /> has data beyond the end of the first value.
</exception>
</Docs>
</Member>
<Member MemberName="WriteEnumeratedValue">
<MemberSignature Language="C#" Value="public void WriteEnumeratedValue (Enum value, System.Formats.Asn1.Asn1Tag? tag = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteEnumeratedValue(class System.Enum value, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteEnumeratedValue (value As Enum, Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteEnumeratedValue : Enum * Nullable<System.Formats.Asn1.Asn1Tag> -> unit" Usage="asnWriter.WriteEnumeratedValue (value, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Enum" />
<Parameter Name="tag" Type="System.Nullable<System.Formats.Asn1.Asn1Tag>" />
</Parameters>
<Docs>
<param name="value">The boxed enumeration value to write.</param>
<param name="tag">The tag to write, or <see langword="null" /> for the default tag (Universal 10).</param>
<summary>
Write a non-[<see cref="T:System.FlagsAttribute" />] enum value as an Enumerated with
tag UNIVERSAL 10.
</summary>
<remarks>To be added.</remarks>
<altmember cref="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<exception cref="T:System.ArgumentNullException">
<paramref name="value" /> is <see langword="null" />.
</exception>
<exception cref="T:System.ArgumentException">
<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.
-or-
<paramref name="value" /> is not a boxed enum value.
-or-
the unboxed type of <paramref name="value" /> is declared [<see cref="T:System.FlagsAttribute" />].
</exception>
<altmember cref="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue(System.Enum,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
</Docs>
</Member>
<Member MemberName="WriteEnumeratedValue<TEnum>">
<MemberSignature Language="C#" Value="public void WriteEnumeratedValue<TEnum> (TEnum value, System.Formats.Asn1.Asn1Tag? tag = default) where TEnum : Enum;" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void WriteEnumeratedValue<(class System.Enum) TEnum>(!!TEnum value, valuetype System.Nullable`1<valuetype System.Formats.Asn1.Asn1Tag> tag) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Formats.Asn1.AsnWriter.WriteEnumeratedValue``1(``0,System.Nullable{System.Formats.Asn1.Asn1Tag})" />
<MemberSignature Language="VB.NET" Value="Public Sub WriteEnumeratedValue(Of TEnum As Enum) (value As TEnum, Optional tag As Nullable(Of Asn1Tag) = Nothing)" />
<MemberSignature Language="F#" Value="member this.WriteEnumeratedValue : 'Enum * Nullable<System.Formats.Asn1.Asn1Tag> -> unit (requires 'Enum :> Enum)" Usage="asnWriter.WriteEnumeratedValue (value, tag)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Formats.Asn1</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TEnum">
<Constraints>
<BaseTypeName>System.Enum</BaseTypeName>
</Constraints>
<Attributes>
<Attribute FrameworkAlternate="net-8.0;net-8.0-pp;net-9.0;net-9.0-pp">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
</Attributes>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="value" Type="TEnum" />