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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈