AsymmetricSecurityKey.GetHashAlgorithmForSignature(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,获取生成数字签名哈希的加密算法。
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 静态字段指定算法。