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
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
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.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈