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 _
)
[C#]
public abstract void SetHashAlgorithm(
 string strName
);
[C++]
public: virtual void SetHashAlgorithm(
 String* strName
) = 0;
[JScript]
public abstract function SetHashAlgorithm(
   strName : String
);

Parameters

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

Remarks

You must set a hash algorithm before calling an implementation of CreateSignature.

Requirements

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

Show: