SymmetricSecurityKey.GetKeyedHashAlgorithm(String) 方法

定义

在派生类中重写时,获取指定的加密哈希算法的实例。

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

参数

algorithm
String

要获取其实例的加密哈希算法。

返回

一个表示加密哈希算法的 KeyedHashAlgorithm

注解

使用 SecurityAlgorithms 类中表示加密哈希算法的字段来指定算法。

适用于