語言

CoseHeaderMap.GetValueAsBytes 方法

定義

取得與指定標籤相關聯的值,作為位元組字串。

多載

名稱 Description
GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

取得與指定標籤相關聯的值,作為位元組字串。

GetValueAsBytes(CoseHeaderLabel)

取得與指定標籤相關聯的值,作為位元組字串。

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs

取得與指定標籤相關聯的值,作為位元組字串。

public:
 int GetValueAsBytes(System::Security::Cryptography::Cose::CoseHeaderLabel label, Span<System::Byte> destination);
public int GetValueAsBytes(System.Security.Cryptography.Cose.CoseHeaderLabel label, Span<byte> destination);
member this.GetValueAsBytes : System.Security.Cryptography.Cose.CoseHeaderLabel * Span<byte> -> int
Public Function GetValueAsBytes (label As CoseHeaderLabel, destination As Span(Of Byte)) As Integer

參數

label
CoseHeaderLabel

要取得的價值標籤。

destination
Span<Byte>

用來寫入該值的緩衝區。

傳回

寫入 destination的位元組數。

例外狀況

destination 太小無法維持價值。

該值無法解碼為位元組字串。

找不到 label。

適用於

GetValueAsBytes(CoseHeaderLabel)

來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs

取得與指定標籤相關聯的值,作為位元組字串。

public:
 cli::array <System::Byte> ^ GetValueAsBytes(System::Security::Cryptography::Cose::CoseHeaderLabel label);
public byte[] GetValueAsBytes(System.Security.Cryptography.Cose.CoseHeaderLabel label);
member this.GetValueAsBytes : System.Security.Cryptography.Cose.CoseHeaderLabel -> byte[]
Public Function GetValueAsBytes (label As CoseHeaderLabel) As Byte()

參數

label
CoseHeaderLabel

要取得的價值標籤。

傳回

Byte[]

與指定標籤相關的值,以位元組字串的形式呈現。

例外狀況

該值無法解碼為位元組字串。

適用於