Edit

Share via


CoseHeaderMap.GetValueAsBytes Method

Definition

Overloads

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

Gets the value associated with the specified label, as a byte string.

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

Parameters

label
CoseHeaderLabel

The label of the value to get.

destination
Span<Byte>

The buffer in which to write the value.

Returns

The number of bytes written to destination.

Exceptions

destination is too small to hold the value.

The value could not be decoded as byte string.

label is not found.

Applies to

GetValueAsBytes(CoseHeaderLabel)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

Gets the value associated with the specified label, as a byte string.

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()

Parameters

label
CoseHeaderLabel

The label of the value to get.

Returns

Byte[]

The value associated with the specified label, as a byte string.

Exceptions

The value could not be decoded as byte string.

Applies to