Sdílet prostřednictvím


PublicKey.CreateFromSubjectPublicKeyInfo Metoda

Definice

Vytvoří novou instanci PublicKey z X.509 SubjectPublicKeyInfo.

public:
 static System::Security::Cryptography::X509Certificates::PublicKey ^ CreateFromSubjectPublicKeyInfo(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] int % bytesRead);
public static System.Security.Cryptography.X509Certificates.PublicKey CreateFromSubjectPublicKeyInfo (ReadOnlySpan<byte> source, out int bytesRead);
static member CreateFromSubjectPublicKeyInfo : ReadOnlySpan<byte> * int -> System.Security.Cryptography.X509Certificates.PublicKey
Public Shared Function CreateFromSubjectPublicKeyInfo (source As ReadOnlySpan(Of Byte), ByRef bytesRead As Integer) As PublicKey

Parametry

source
ReadOnlySpan<Byte>

Bajty struktury X.509 SubjectPublicKeyInfo v kódování ASN.1-DER.

bytesRead
Int32

Když tato metoda vrátí, obsahuje hodnotu, která označuje počet bajtů načtených z source. Tento parametr se považuje za neinicializovaný.

Návraty

PublicKey

Veřejný klíč představující SubjectPublicKeyInfo.

Výjimky

SubjectPublicKeyInfo nelze dekódovat.

Platí pro