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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.