PublicKey.CreateFromSubjectPublicKeyInfo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en ny instans av PublicKey från en 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
Parametrar
- source
- ReadOnlySpan<Byte>
Byte för en X.509 SubjectPublicKeyInfo-struktur i ASN.1-DER-kodningen.
- bytesRead
- Int32
När den här metoden returneras innehåller ett värde som anger antalet byte som lästs från source. Den här parametern behandlas som oinitierad.
Returer
En offentlig nyckel som representerar SubjectPublicKeyInfo.
Undantag
Det gick inte att avkoda SubjectPublicKeyInfo.