Share via


CoseHeaderMap.GetValueAsBytes 方法

定義

多載

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[]

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

例外狀況

值無法譯碼為位元組字串。

適用於