PublicKey.CreateFromSubjectPublicKeyInfo Méthode

Définition

Crée une instance d’un PublicKey ObjetPublicKeyInfo X.509.

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

Paramètres

source
ReadOnlySpan<Byte>

Octets d’une structure X.509 SubjectPublicKeyInfo dans l’encodage ASN.1-DER.

bytesRead
Int32

Lorsque cette méthode est retournée, contient une valeur qui indique le nombre d’octets lus source. Ce paramètre est traité comme non initialisé.

Retours

Clé publique représentant SubjectPublicKeyInfo.

Exceptions

SubjectPublicKeyInfo n’a pas pu être décodé.

S’applique à