Share via


InMemorySymmetricSecurityKey.GetKeyedHashAlgorithm(String) 方法

定義

取得所指定索引雜湊演算法的執行個體。

public:
 override System::Security::Cryptography::KeyedHashAlgorithm ^ GetKeyedHashAlgorithm(System::String ^ algorithm);
public override System.Security.Cryptography.KeyedHashAlgorithm GetKeyedHashAlgorithm (string algorithm);
override this.GetKeyedHashAlgorithm : string -> System.Security.Cryptography.KeyedHashAlgorithm
Public Overrides Function GetKeyedHashAlgorithm (algorithm As String) As KeyedHashAlgorithm

參數

algorithm
String

要取得其執行個體的索引雜湊演算法。

傳回

KeyedHashAlgorithm,表示索引雜湊演算法。

例外狀況

不支援 algorithm。 支援的演算法為 HmacSha1Signature

適用於