CoseHeaderValue.GetValueAsBytes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會以位元組字串的形式取得 CBOR 編碼的值。
多載
| 名稱 | Description |
|---|---|
| GetValueAsBytes() |
會以位元組字串的形式取得 CBOR 編碼的值。 |
| GetValueAsBytes(Span<Byte>) |
會以位元組字串的形式取得 CBOR 編碼的值。 |
GetValueAsBytes()
會以位元組字串的形式取得 CBOR 編碼的值。
public:
cli::array <System::Byte> ^ GetValueAsBytes();
public byte[] GetValueAsBytes();
member this.GetValueAsBytes : unit -> byte[]
Public Function GetValueAsBytes () As Byte()
傳回
Byte[]
解碼後的值以位元組陣列形式呈現。
例外狀況
該值無法解碼為位元組字串。
適用於
GetValueAsBytes(Span<Byte>)
會以位元組字串的形式取得 CBOR 編碼的值。
public:
int GetValueAsBytes(Span<System::Byte> destination);
public int GetValueAsBytes(Span<byte> destination);
member this.GetValueAsBytes : Span<byte> -> int
Public Function GetValueAsBytes (destination As Span(Of Byte)) As Integer
參數
傳回
寫入 destination的位元組數。
例外狀況
destination 太小無法維持價值。
該值無法解碼為位元組字串。