This documentation is archived and is not being maintained.

AsymmetricSignatureFormatter.SetKey Method

When overridden in a derived class, sets the asymmetric algorithm to use to create the signature.

[Visual Basic]
Public MustOverride Sub SetKey( _
   ByVal key As AsymmetricAlgorithm _
public abstract void SetKey(
 AsymmetricAlgorithm key
public: virtual void SetKey(
 AsymmetricAlgorithm* key
) = 0;
public abstract function SetKey(
   key : AsymmetricAlgorithm


The instance of the implementation of AsymmetricAlgorithm to use to create the signature.


You must set a key before calling an implementation of CreateSignature.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

AsymmetricSignatureFormatter Class | AsymmetricSignatureFormatter Members | System.Security.Cryptography Namespace | Cryptographic Services