CoseHeaderMap.GetValueAsBytes Metoda

Definicja

Przeciążenia

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Pobiera wartość skojarzona z określoną etykietą jako ciąg bajtowy.

GetValueAsBytes(CoseHeaderLabel)

Pobiera wartość skojarzona z określoną etykietą jako ciąg bajtowy.

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs

Pobiera wartość skojarzona z określoną etykietą jako ciąg bajtowy.

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

Parametry

label
CoseHeaderLabel

Etykieta wartości do pobrania.

destination
Span<Byte>

Bufor, w którym ma być zapisywana wartość.

Zwraca

Liczba bajtów zapisanych w pliku destination.

Wyjątki

destination jest zbyt mała, aby przechowywać wartość.

Nie można zdekodować wartości jako ciągu bajtowego.

label nie można odnaleźć.

Dotyczy

GetValueAsBytes(CoseHeaderLabel)

Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs
Źródło:
CoseHeaderMap.cs

Pobiera wartość skojarzona z określoną etykietą jako ciąg bajtowy.

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

Parametry

label
CoseHeaderLabel

Etykieta wartości do pobrania.

Zwraca

Byte[]

Wartość skojarzona z określoną etykietą jako ciąg bajtowy.

Wyjątki

Nie można zdekodować wartości jako ciągu bajtowego.

Dotyczy