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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기