แก้ไข

แชร์ผ่าน


RSAPKCS1SignatureDeformatter.SetKey(AsymmetricAlgorithm) Method

Definition

Sets the public key to use for verifying the signature.

public:
 override void SetKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public override void SetKey (System.Security.Cryptography.AsymmetricAlgorithm key);
override this.SetKey : System.Security.Cryptography.AsymmetricAlgorithm -> unit
Public Overrides Sub SetKey (key As AsymmetricAlgorithm)

Parameters

key
AsymmetricAlgorithm

The instance of RSA that holds the public key.

Exceptions

key is null.

Remarks

You must set a key before calling VerifySignature.

Applies to

See also