AsymmetricSecurityKey.GetHashAlgorithmForSignature(String) 方法

定义

在派生类中重写时,获取生成数字签名哈希的加密算法。

public:
 abstract System::Security::Cryptography::HashAlgorithm ^ GetHashAlgorithmForSignature(System::String ^ algorithm);
public abstract System.Security.Cryptography.HashAlgorithm GetHashAlgorithmForSignature(string algorithm);
abstract member GetHashAlgorithmForSignature : string -> System.Security.Cryptography.HashAlgorithm
Public MustOverride Function GetHashAlgorithmForSignature (algorithm As String) As HashAlgorithm

参数

algorithm
String

哈希算法。

返回

生成数字签名哈希的 A HashAlgorithm

注解

使用类的 SecurityAlgorithms 静态字段指定算法。

适用于