AsymmetricSignatureFormatter.SetKey Method (AsymmetricAlgorithm)

 

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

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

Public MustOverride Sub SetKey (
	key As AsymmetricAlgorithm
)

Parameters

key
Type: System.Security.Cryptography.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.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: