This documentation is archived and is not being maintained.

AsymmetricSignatureFormatter.SetHashAlgorithm Method

When overridden in a derived class, sets the hash algorithm to use for creating the signature.

[Visual Basic]
Public MustOverride Sub SetHashAlgorithm( _
   ByVal strName As String _
public abstract void SetHashAlgorithm(
 string strName
public: virtual void SetHashAlgorithm(
 String* strName
) = 0;
public abstract function SetHashAlgorithm(
   strName : String


The name of the hash algorithm to use for creating the signature.


You must set a hash algorithm 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