HashAlgorithmName.TryFromOid(String, HashAlgorithmName) 方法

定義

嘗試將指定的 OID 轉換為雜湊演算法名稱。

public:
 static bool TryFromOid(System::String ^ oidValue, [Runtime::InteropServices::Out] System::Security::Cryptography::HashAlgorithmName % value);
public static bool TryFromOid (string oidValue, out System.Security.Cryptography.HashAlgorithmName value);
static member TryFromOid : string * HashAlgorithmName -> bool
Public Shared Function TryFromOid (oidValue As String, ByRef value As HashAlgorithmName) As Boolean

參數

oidValue
String

雜湊演算法的 OID。

value
HashAlgorithmName

當此方法傳回 true 時,為雜湊演算法。 當這個方法傳 false 回 時,會包含 default

傳回

如果 OID 成功對應到雜湊演算法,則為 true;否則為 false

例外狀況

oidValuenull

適用於