CoseHeaderMap.GetValueAsBytes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Source:
- CoseHeaderMap.cs
- 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.
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
- Source:
- CoseHeaderMap.cs
- 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
The value associated with the specified label, as a byte string.
Exceptions
The value could not be decoded as byte string.