ValueAsnReader.TryReadPrimitiveOctetString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試將下一個值讀取為帶有指定標籤的八位元組字串,並將內容回傳為原始資料上的 a ReadOnlySpan<T> 。
public bool TryReadPrimitiveOctetString(out ReadOnlySpan<byte> contents, System.Formats.Asn1.Asn1Tag? expectedTag = default);
member this.TryReadPrimitiveOctetString : ReadOnlySpan * Nullable<System.Formats.Asn1.Asn1Tag> -> bool
Public Function TryReadPrimitiveOctetString (ByRef contents As ReadOnlySpan(Of Byte), Optional expectedTag As Nullable(Of Asn1Tag) = Nothing) As Boolean
參數
- contents
- ReadOnlySpan<Byte>
成功時,會收到對應於 OCTET 字串值的原始資料上的 a ReadOnlySpan<T> 。
傳回
true 若 OCTET STRING 值有原始編碼,則推進讀取器; false 若有構造編碼則不推進讀取器。