SignedXml.GetPublicKey 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.
Returns the public key of a signature.
protected:
virtual System::Security::Cryptography::AsymmetricAlgorithm ^ GetPublicKey();
protected virtual System.Security.Cryptography.AsymmetricAlgorithm GetPublicKey ();
protected virtual System.Security.Cryptography.AsymmetricAlgorithm? GetPublicKey ();
abstract member GetPublicKey : unit -> System.Security.Cryptography.AsymmetricAlgorithm
override this.GetPublicKey : unit -> System.Security.Cryptography.AsymmetricAlgorithm
Protected Overridable Function GetPublicKey () As AsymmetricAlgorithm
Returns
An AsymmetricAlgorithm object that contains the public key of the signature, or null
if the key cannot be found.
Exceptions
The KeyInfo property is null
.
Remarks
The GetPublicKey method returns an AsymmetricAlgorithm object that contains a public key that can be used to verify an XML digital signature.
The key must be either a DSA or an RSA key.
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour