SignedXml.GetPublicKey メソッド

定義

署名の公開キーを返します。

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

戻り値

署名の公開キーを格納している AsymmetricAlgorithm オブジェクト。キーが見つからない場合は null

例外

KeyInfo プロパティが null です。

注釈

メソッドは GetPublicKey 、XML デジタル署名の AsymmetricAlgorithm 検証に使用できる公開キーを含む オブジェクトを返します。

キーは、 または キーであるDSARSA必要があります。

適用対象