AsnReader Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Construct an AsnReader over data
with a given ruleset.
public AsnReader (ReadOnlyMemory<byte> data, System.Formats.Asn1.AsnEncodingRules ruleSet, System.Formats.Asn1.AsnReaderOptions options = default);
new System.Formats.Asn1.AsnReader : ReadOnlyMemory<byte> * System.Formats.Asn1.AsnEncodingRules * System.Formats.Asn1.AsnReaderOptions -> System.Formats.Asn1.AsnReader
Public Sub New (data As ReadOnlyMemory(Of Byte), ruleSet As AsnEncodingRules, Optional options As AsnReaderOptions = Nothing)
Parameters
- data
- ReadOnlyMemory<Byte>
The data to read.
- ruleSet
- AsnEncodingRules
The encoding constraints for the reader.
- options
- AsnReaderOptions
Additional options for the reader.
Exceptions
ruleSet
is not defined.
Remarks
This constructor does not evaluate data
for correctness. Any correctness checks are done as part of member methods.
This constructor does not copy data
. The caller is responsible for ensuring that the values do not change until the reader is finished.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應